Commit e01eee3d authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

xwayland: Use desktop coordinates for pointer events

The Wayland compositor sends pointer coordinates in desktop space, which
can be negative if one output is placed at negative coordinates.

Yet Xwayland would treat those as screen coordinates, which cannot be
negative because relative to the origin.

Queue pointer events from the Wayland compositor as POINTER_DESKTOP
instead of POINTER_SCREEN.
Signed-off-by: default avatarOlivier Fourdan <>
parent 1d8f9478
Pipeline #170493 passed with stages
in 3 minutes and 41 seconds
......@@ -530,7 +530,7 @@ dispatch_pointer_motion_event(struct xwl_seat *xwl_seat)
QueuePointerEvents(xwl_seat->pointer, MotionNotify, 0,
xwl_seat->pending_pointer_event.has_absolute = FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment