diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2016-06-23 15:31:30 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-08-19 11:04:25 +1000 |
commit | 6e5bec261c3f7af069b57618d6c82b070dc4579d (patch) | |
tree | 3cb839710985e1ccdb2327d02f0c86f82c58dc32 /hw/xwayland/xwayland.h | |
parent | 48c5c23a1b250c7f9d7a1747c76e4669ebf752cf (diff) |
wayland: Emulate crossing for native window
Emitting a LeaveNotify event every time the pointer leaves an X11 window
may confuse focus follow mouse mode in window managers such as
mutter/gnome-shell.
Keep the previously found X window and compare against the new one, and
if they match then it means the pointer has left an Xwayland window for
a native Wayland surface, only in this case fake the crossing to the
root window.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xwayland/xwayland.h')
-rw-r--r-- | hw/xwayland/xwayland.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland.h b/hw/xwayland/xwayland.h index 8db8df589..db3dd0b77 100644 --- a/hw/xwayland/xwayland.h +++ b/hw/xwayland/xwayland.h @@ -132,6 +132,7 @@ struct xwl_seat { struct wl_surface *cursor; struct wl_callback *cursor_frame_cb; Bool cursor_needs_update; + WindowPtr last_xwindow; struct xorg_list touches; |