From 8530e471bcd78422505f448925e7c322bfde21d8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 6 Feb 2023 15:52:24 +0100 Subject: [PATCH] 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: --- src/x11/events.c | 1 + 1 file changed, 1 insertion(+) 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,