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;