From 937651cf0e71b55dcd2f1fb7dad9f27305f6eed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 27 May 2022 19:01:50 +0200 Subject: [PATCH] display: Remove another COMPOSITOR_GRAB check The event-route is never set to COMPOSITOR_GRAB nowadays, so the condition will never be met. Furthermore, it is expected that ClutterGrabs only happen when events are routed normally, so the remaining NORMAL check should already fully cover the old COMPOSITOR_GRAB case. Part-of: --- src/core/display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 14b390346..2145fde0d 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -1997,8 +1997,7 @@ meta_display_end_grab_op (MetaDisplay *display, meta_topic (META_DEBUG_WINDOW_OPS, "Ending grab op %u at time %u", grab_op, timestamp); - if (display->event_route == META_EVENT_ROUTE_NORMAL || - display->event_route == META_EVENT_ROUTE_COMPOSITOR_GRAB) + if (display->event_route == META_EVENT_ROUTE_NORMAL) return; g_assert (grab_window != NULL);