From 037e47326c6784f4b1d31b2615fd21aaf8b3887a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 13 Nov 2003 15:34:04 +0000 Subject: [PATCH] Fix the strange stacking described in #68071. svn path=/trunk/kdebase/kwin/; revision=266823 --- layers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layers.cpp b/layers.cpp index 2b108864c3..05ed7cb7e3 100644 --- a/layers.cpp +++ b/layers.cpp @@ -502,6 +502,7 @@ ClientList Workspace::constrainedStackingOrder() break; } } +// kdDebug() << "STACK:" << (*it) << ":" << ( it2 == stacking.end() ? ((Client*)0) : (*it2)) << endl; if( it2 == stacking.end()) { --it; @@ -511,6 +512,8 @@ ClientList Workspace::constrainedStackingOrder() ClientList::Iterator remove_it = it; --it; stacking.remove( remove_it ); + if( !current->transients().isEmpty()) // this one now can be possibly above its transients, + it = it2; // so go again higher in the stack order and possibly move those transients again ++it2; // insert after the mainwindow, it's ok if it2 is now stacking.end() stacking.insert( it2, current ); }