From 95cc10f6cad35828fe9db5f904b2414ed9207b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 18 Nov 2003 18:10:36 +0000 Subject: [PATCH] Try harder to find the matching topmenu for kdesktop. svn path=/trunk/kdebase/kwin/; revision=268022 --- workspace.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 06d0a54a46..35d13b761a 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -546,6 +546,20 @@ void Workspace::updateCurrentTopMenu() break; } } + // TODO to be cleaned app with window grouping + // Without qt-copy patch #0009, the topmenu and desktop are not in the same group, + // thus the topmenu is not transient for it :-/. + if( menubar == NULL ) + { + for( ClientList::ConstIterator it = topmenus.begin(); + it != topmenus.end(); + ++it ) + if( (*it)->groupTransient()) + { + menubar = *it; + break; + } + } } // kdDebug() << "CURRENT TOPMENU:" << menubar << ":" << active_client << endl;