Skip to content

pointer input: handle warp events differently from absolute motion events

Xaver Hugl requested to merge work/zamundaaa/cursor-warp-xwl into master

As Wayland doesn't have a warp event yet, before this commit, warps were dealt with like normal absolute motion events. This trips up games though, which don't deal with actual absolute motion events well. As a solution to that, until an actual warp event is a thing, we send a motion event with a position + a relative motion event with no motion

I'm also looking at a potential fix in Xwayland, but I figured we'd want the infrastructure for warp events either way.

BUG: 458233 CCBUG: 482476

Merge request reports