transients stay also on top if the main client stays on top

svn path=/trunk/kdebase/kwin/; revision=54721
This commit is contained in:
Matthias Ettrich 2000-06-28 13:24:04 +00:00
parent f5226e0281
commit d332cf9c90

View file

@ -1615,11 +1615,11 @@ ClientList Workspace::constrainedStackingOrder( const ClientList& list )
ClientList result;
ClientList::ConstIterator it;
for ( it = list.begin(); it!=list.end(); ++it) {
if ( !(*it)->staysOnTop() )
if ( !(*it)->staysOnTop() && !(*it)->mainClient()->staysOnTop())
result.append( *it );
}
for ( it = list.begin(); it!=list.end(); ++it) {
if ( (*it)->staysOnTop() )
if ( (*it)->staysOnTop() || (*it)->mainClient()->staysOnTop() )
result.append( *it );
}
return result;