From 86cccebde618df82c3e50b2c856a991ba782d1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 10 Jan 2003 12:33:09 +0000 Subject: [PATCH] Don't lower topmenu when lowering a window. svn path=/trunk/kdebase/kwin/; revision=198737 --- workspace.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index c158d96002..0ba8f312a5 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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 )