Skip to content
Snippets Groups Projects
Commit 1345f804 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

xwayland: confine motion events to the confined window


When an X11 client has an active grab on the pointer, all events are
reported relative to the window with the grab.

For Xwayland, if an X11 client has a grab with a pointer confinement
active, while pointer focus is on another window, motion events should
not be reported to the client with the grab, because that sets the X11
client appart, the events would be reported when the pointer is on any
X11 window but not on Wayland native surfaces.

Therefore, if the pointer is confined on a window and that window
differs from the actual pointer focus window, just pretend we lost
pointer focus to another window.

Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Closes: #962


Reviewed-by: default avatarCarlos Garnacho <carlosg@gnome.org>
Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5929b789
No related branches found
No related tags found
1 merge request!414xwayland: Pointer contraints and locking fixes
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment