From 017a5c84314feb935a1653208bf1e90981e24db8 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Mon, 14 Dec 2009 12:03:32 +0000 Subject: [PATCH] Be more strict with tab autogrouping after an in-session KWin restart. This is probably as good as it gets without adding window properties. CCBUG: 218116 svn path=/trunk/KDE/kdebase/workspace/; revision=1062347 --- manage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manage.cpp b/manage.cpp index 397d67d163..9e6bc5dc35 100644 --- a/manage.cpp +++ b/manage.cpp @@ -309,7 +309,9 @@ bool Client::manage( Window w, bool isMapped ) // 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 ) - if( geom == QRect( group->visible()->pos(), group->visible()->clientSize() )) + if( geom == QRect( group->visible()->pos(), group->visible()->clientSize() ) && + desk == group->visible()->desktop() && + group->visible()->maximizeMode() != MaximizeFull ) { group->add( this, -1, true ); break;