From 27a7238f448eebde295e6c6ca653c13da8760853 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Fri, 23 Dec 2011 22:10:56 +0100 Subject: [PATCH] kwin: respect the autogroup configuration when restarting kwin BUG: 279468 FIXED-IN: 4.8 --- manage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage.cpp b/manage.cpp index 1877a3d96b..adbe29c281 100644 --- a/manage.cpp +++ b/manage.cpp @@ -323,10 +323,11 @@ bool Client::manage(Window w, bool isMapped) bool dontKeepInArea = false; if (!noBorder()) { setClientGroup(NULL); + bool autogrouping = rules()->checkAutogrouping(options->autogroupSimilarWindows); // Automatically add to previous groups on session restore if (session && session->clientGroupClient && session->clientGroupClient != this && session->clientGroupClient->clientGroup()) session->clientGroupClient->clientGroup()->add(this, -1, true); - else if (isMapped) + else if (isMapped && autogrouping) // If the window is already mapped (Restarted KWin) add any windows that already have the // same geometry to the same client group. (May incorrectly handle maximized windows) foreach (ClientGroup * group, workspace()->clientGroups)