From e7b58c23b896c604b71d542b2f477523df60e637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 20 Jan 2021 12:22:22 +0100 Subject: [PATCH] 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: --- src/core/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 07eb0cda2..83748051e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -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;