events: Remove obsolete COMPOSITOR_GRAB check

We already bypass wayland if there is a ClutterGrab, so the case
that used to be covered by the event-route check is already handled,
and we can just remove the obsolete check.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2436>
This commit is contained in:
Florian Müllner 2022-05-27 19:33:32 +02:00 committed by Marge Bot
parent fabad0be9c
commit 022f47ebfe

View File

@ -524,10 +524,6 @@ meta_display_handle_event (MetaDisplay *display,
}
out:
/* If the compositor has a grab, don't pass that through to Wayland */
if (display->event_route == META_EVENT_ROUTE_COMPOSITOR_GRAB)
bypass_wayland = TRUE;
/* If a Wayland client has a grab, don't pass that through to Clutter */
if (display->event_route == META_EVENT_ROUTE_WAYLAND_POPUP)
bypass_clutter = !bypass_wayland;