mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
window: Do not handle ungrabbed events when unmanaging
Once we are no longer managing a window, we have no business in dealing with it anymore, and operations like focusing, raising or pinging the window aren't expected to work, and can go horribly wrong if we try. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2467 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1676>
This commit is contained in:
parent
38d12d39fa
commit
e7b58c23b8
@ -8360,6 +8360,9 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
||||
gfloat x, y;
|
||||
guint button;
|
||||
|
||||
if (window->unmanaging)
|
||||
return;
|
||||
|
||||
if (event->type != CLUTTER_BUTTON_PRESS &&
|
||||
event->type != CLUTTER_TOUCH_BEGIN)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user