mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
Protect against stray calls to meta_display_end_grab_op()
If end_grab_op() is called when there's a "compositor grab" rather than a grab op is in effect, silently return. https://bugzilla.gnome.org/show_bug.cgi?id=745785
This commit is contained in:
parent
b975676c5d
commit
ae7aabd5de
@ -1963,9 +1963,12 @@ meta_display_end_grab_op (MetaDisplay *display,
|
||||
meta_topic (META_DEBUG_WINDOW_OPS,
|
||||
"Ending grab op %u at time %u\n", grab_op, timestamp);
|
||||
|
||||
if (display->event_route == META_EVENT_ROUTE_NORMAL)
|
||||
if (display->event_route == META_EVENT_ROUTE_NORMAL ||
|
||||
display->event_route == META_EVENT_ROUTE_COMPOSITOR_GRAB)
|
||||
return;
|
||||
|
||||
g_assert (grab_window != NULL);
|
||||
|
||||
g_signal_emit (display, display_signals[GRAB_OP_END], 0,
|
||||
display->screen, grab_window, grab_op);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user