From f4604d41628759325799df6b32b5b564fb5a8d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 11 Nov 2003 18:51:10 +0000 Subject: [PATCH] Make sure topmenu is on the same virtual desktop as the active window for which it's shown. svn path=/trunk/kdebase/kwin/; revision=266399 --- workspace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 218160d6f4..177eb1e666 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -553,7 +553,11 @@ void Workspace::updateCurrentTopMenu() // kdDebug() << "CURRENT TOPMENU:" << menubar << ":" << active_client << endl; if ( menubar ) + { + if( active_client && !menubar->isOnDesktop( active_client->desktop())) + menubar->setDesktop( active_client->desktop()); menubar->hideClient( false ); + } // ... then hide the other ones. Avoids flickers. #if 0