Don't lower topmenu when lowering a window.

svn path=/trunk/kdebase/kwin/; revision=198737
icc-effect-5.14.5
Luboš Luňák 2003-01-10 12:33:09 +00:00
parent 05063a30f5
commit 86cccebde6
1 changed files with 13 additions and 0 deletions

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 )