From 89aefe8811967fc46d4ce01cfa6981b5a7627ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 18 Feb 2004 18:27:04 +0000 Subject: [PATCH] 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 --- workspace.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index f124e63052..b1890f8510 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -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()) {