kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

Blame SOURCES/0002-window-Explicitly-exclude-unmanaging-window-from-foc.patch

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