summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2023-02-06 15:52:24 +0100
committerCarlos Garnacho <carlosg@gnome.org>2023-02-09 14:38:39 +0100
commit8530e471bcd78422505f448925e7c322bfde21d8 (patch)
tree75fa80463ca0338ad255fc507a98debe55f9efc0
parentcaf68a6563599f5384654a42f1973a523a0cc8e8 (diff)
downloadmutter-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>
-rw-r--r--src/x11/events.c1
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,