no weird desktop switching with race conditions when enabling the mac menu

svn path=/trunk/kdebase/kwin/; revision=68003
This commit is contained in:
Matthias Ettrich 2000-10-16 12:08:54 +00:00
parent 3c8525c963
commit caf8fda461

View file

@ -588,7 +588,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
if ( desk <= 0 ) {
// assume window wants to be visible on the current desktop
desk = workspace()->currentDesktop();
} else if ( !isMapped && !doNotShow && desk != workspace()->currentDesktop() ) {
} else if ( !isMapped && !doNotShow && desk != workspace()->currentDesktop()
&& !isMenu() ) {
//window didn't specify any specific desktop but will appear
//somewhere else. This happens for example with "save data?"
//dialogs on shutdown. Switch to the respective desktop in