Show at least the desktop's toplevel menubar if the app's one isn't visible yet.

svn path=/trunk/kdebase/kwin/; revision=165078
This commit is contained in:
Luboš Luňák 2002-07-05 20:08:17 +00:00
parent 1fab5c76ce
commit df4449b0bf

View file

@ -1441,8 +1441,10 @@ void Workspace::setActiveClient( Client* c )
}
// ... then hide the other ones. Avoids flickers.
// Leave the desktop menubars always visible. Helps visually when the app doesn't show
// its menubar immediately.
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
if ( (*it)->isTopMenu() && (*it) != menubar )
if ( (*it)->isTopMenu() && (*it) != menubar && !(*it)->mainClient()->isDesktop() )
(*it)->hide();
}