From d332cf9c90b47e02b8cf5642f008ecd1ab2bdb72 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Wed, 28 Jun 2000 13:24:04 +0000 Subject: [PATCH] transients stay also on top if the main client stays on top svn path=/trunk/kdebase/kwin/; revision=54721 --- workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 5b6e8f420d..aac99cb04d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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;