[mutter] display: Remove another COMPOSITOR_GRAB check



commit 937651cf0e71b55dcd2f1fb7dad9f27305f6eed7
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri May 27 19:01:50 2022 +0200

    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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2436>

 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 14b3903469..2145fde0db 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]