core: Drop check on META_EVENT_ROUTE_WAYLAND_POPUP grabs

Query the MetaWaylandCompositor directly for it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
Carlos Garnacho 2022-09-29 15:32:23 +02:00 committed by Marge Bot
parent cca531339d
commit a91feeb5df

View File

@ -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 &&