From 598c604fb68d4cc691b3fc28e36e6bd2a6b7ac48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 26 May 2004 08:47:37 +0000 Subject: [PATCH] Make sure splashscreens stay on top of other windows in the app. svn path=/trunk/kdebase/kwin/; revision=314694 --- group.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/group.cpp b/group.cpp index b06fb62a6d..77b0ab1875 100644 --- a/group.cpp +++ b/group.cpp @@ -843,19 +843,21 @@ void Client::checkGroup( Group* set_group, bool force ) (*it)->addTransient( this ); } #endif -#if 0 // this would make group transients transient for window that were mapped later + // group transient splashscreens should be transient even for windows + // in group mapped later for( ClientList::ConstIterator it = group()->members().begin(); it != group()->members().end(); ++it ) { - if( !(*it)->groupTransient()) // and group transients in the new group are transient for it + if( !(*it)->isSplash()) continue; - if( *it == this ) + if( !(*it)->groupTransient()) + continue; + if( *it == this || hasTransient( *it, true )) // TODO indirect? continue; addTransient( *it ); } checkGroupTransients(); -#endif } checkGroupTransients(); workspace()->updateClientLayer( this );