Don't lower topmenu when lowering a window.

svn path=/trunk/kdebase/kwin/; revision=198737
This commit is contained in:
Luboš Luňák 2003-01-10 12:33:09 +00:00
parent 05063a30f5
commit 86cccebde6

View file

@ -1992,6 +1992,19 @@ void Workspace::lowerClient( Client* c )
stacking_order.prepend(c);
stacking_order = constrainedStackingOrder( stacking_order );
if( c == active_client ) {
// don't lower toplevel menubar
for( ClientList::ConstIterator it = clients.fromLast();
it != clients.end();
--it )
if( (*it)->isTopMenu() && (*it)->mainClient() == c ) {
stacking_order.remove( *it );
stacking_order.append( *it );
break;
}
}
propagateClients( true, true );
if ( c == most_recently_raised )