svn path=/trunk/kdebase/kwin/; revision=233897
icc-effect-5.14.5
Luboš Luňák 2003-06-26 13:09:45 +00:00
parent aa0cc3b51a
commit be51d65058
1 changed files with 4 additions and 6 deletions

View File

@ -1482,12 +1482,10 @@ void Workspace::setActiveClient( Client* c )
if ( !menubar && !has_full_screen)
{
// Find the menubar of the desktop
if ( !desktops.isEmpty() ) {
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
if ( (*it)->isTopMenu() && (*it)->mainClient()->isDesktop() ) {
menubar = *it;
break;
}
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
if( (*it)->isTopMenu() && ((*it)->mainClient()->isDesktop() || (*it)->transientFor() == rootWin())) {
menubar = *it;
break;
}
}
#if 0 // I don't like this - why to show a menubar belonging to another application?