diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c index 6e52a5a55..3ff843172 100644 --- a/src/backends/x11/meta-backend-x11.c +++ b/src/backends/x11/meta-backend-x11.c @@ -141,7 +141,15 @@ translate_crossing_event (MetaBackendX11 *x11, return; } - enter_event->event = meta_backend_x11_get_xwindow (x11); + Window stage_window = meta_backend_x11_get_xwindow (x11); + if (enter_event->event != stage_window) + { + /* See above for the rationale for this... */ + g_assert (!meta_is_wayland_compositor ()); + enter_event->event = meta_backend_x11_get_xwindow (x11); + enter_event->event_x = enter_event->root_x; + enter_event->event_y = enter_event->root_y; + } } static void