From a91feeb5dfa7945e9618ae3dab33770c4cd64d13 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 29 Sep 2022 15:32:23 +0200 Subject: [PATCH] core: Drop check on META_EVENT_ROUTE_WAYLAND_POPUP grabs Query the MetaWaylandCompositor directly for it. Part-of: --- src/core/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/events.c b/src/core/events.c index 1f31a1f1a..1ad89089f 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -517,11 +517,11 @@ meta_display_handle_event (MetaDisplay *display, } out: +#ifdef HAVE_WAYLAND /* If a Wayland client has a grab, don't pass that through to Clutter */ - if (display->event_route == META_EVENT_ROUTE_WAYLAND_POPUP) + if (wayland_compositor && meta_wayland_compositor_is_grabbed (wayland_compositor)) bypass_clutter = !bypass_wayland; -#ifdef HAVE_WAYLAND if (wayland_compositor && !bypass_wayland) { if (window && event->type == CLUTTER_MOTION &&