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
This commit is contained in:
parent
e7cc4aa974
commit
89aefe8811
1 changed files with 11 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue