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>
This commit is contained in:
parent
022f47ebfe
commit
937651cf0e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user