do not force desktop menu on top of windows that want to be on top, fixes fullscreen behaviour for non-kde apps with multiple windows (i.e. mplayer)

svn path=/trunk/kdebase/kwin/; revision=193897
icc-effect-5.14.5
Klas Kalass 2002-12-14 15:20:45 +00:00
parent 682eda07fe
commit 17c4c1f75c
1 changed files with 5 additions and 1 deletions

View File

@ -1484,7 +1484,11 @@ void Workspace::setActiveClient( Client* c )
if ( menubar ) {
menubar->show();
menubar->raise(); // better for FocusFollowsMouse than raiseClient(menubar)
// do not cover a client that wants to stay on top with the desktop menu
if ( menubar->mainClient() == active_client->mainClient()
|| !active_client->staysOnTop())
menubar->raise(); // better for FocusFollowsMouse than raiseClient(menubar)
raiseElectricBorders();
}