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

xwayland: Do not lock the pointer on the wrong window


If a client issues a grab on the pointer while the cursor is on another
X11 window, and then hides the cursor, we may end up locking the pointer
onto that other window.

Then a button click might end up moving the focus away from the window
which issued the grab, leaving the whole setup in a mixed up state.

Typically, if the pointer is on another X11 window, we should not try to
lock the pointer, so that it can be moved back to the window which
actually issues the grab (and hence the pointer confinement). Typically,
this is the same as an X11 client issuing a pointer grab while the
cursor is on another Wayland native 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 a5151f58
No related branches found
No related tags found
Loading
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