diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2023-02-06 15:52:24 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2023-02-09 14:38:39 +0100 |
commit | 8530e471bcd78422505f448925e7c322bfde21d8 (patch) | |
tree | 75fa80463ca0338ad255fc507a98debe55f9efc0 /src/x11 | |
parent | caf68a6563599f5384654a42f1973a523a0cc8e8 (diff) | |
download | mutter-8530e471bcd78422505f448925e7c322bfde21d8.tar.gz |
x11: Avoid sloppy/mouse mode handling on Wayland
On Wayland sessions, this handling is unnecessary and even prone
to confusion (e.g. crossing serials are only ignored in X11-exclusive
paths, so this handling competes directly with that in MetaWaylandPointer).
Avoid it entirely there, so MetaWaylandPointer can figure out
sloppy/mouse mode focus for all Wayland/Xwayland surfaces.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2828>
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x11/events.c b/src/x11/events.c index 3bd215210..fd0f84c4a 100644 --- a/src/x11/events.c +++ b/src/x11/events.c @@ -993,6 +993,7 @@ handle_input_xevent (MetaX11Display *x11_display, enter_event->mode != XINotifyGrab && enter_event->mode != XINotifyUngrab && enter_event->detail != XINotifyInferior && + !meta_is_wayland_compositor () && meta_x11_display_focus_sentinel_clear (x11_display)) { meta_window_handle_enter (window, |