Before using the global desktop topmenu, try to find any topmenu

belonging to the application.
CCMAIL: 72113-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=289122
icc-effect-5.14.5
Luboš Luňák 2004-02-18 18:27:04 +00:00
parent e7cc4aa974
commit 89aefe8811
1 changed files with 11 additions and 0 deletions

View File

@ -546,6 +546,17 @@ void Workspace::updateCurrentTopMenu()
break; // don't use mainwindow's menu if this is modal or group transient
menu_client = menu_client->transientFor();
}
if( !menubar )
{ // try to find any topmenu from the application (#72113)
for( ClientList::ConstIterator it = active_client->group()->members().begin();
it != active_client->group()->members().end();
++it )
if( (*it)->isTopMenu())
{
menubar = *it;
break;
}
}
}
if( !menubar && !block_desktop_menubar && options->desktopTopMenu())
{