From 7969c473ace6b3c90fcc0de9bf74acaf3cd47094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 25 May 2018 21:24:17 +0200 Subject: [PATCH] window: Explicitly exclude unmanaging window from focus again Since commit b3b9d9e16 we no longer have to pass the unmanaging window to make sure we don't try to focus it again, however the parameter also influences the focus policy by giving ancestors preference over the normal stack order. https://gitlab.gnome.org/GNOME/mutter/issues/15 (cherry picked from commit d99442d6e6b7c9b383863cc754db609398d4e65b) --- src/core/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index d17f8838b..d69720a4d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1469,7 +1469,9 @@ meta_window_unmanage (MetaWindow *window, meta_topic (META_DEBUG_FOCUS, "Focusing default window since we're unmanaging %s\n", window->desc); - meta_workspace_focus_default_window (window->screen->active_workspace, NULL, timestamp); + meta_workspace_focus_default_window (window->screen->active_workspace, + window, + timestamp); } else {