From caf8fda461d55e13260a2977eb4446781df01ae9 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Mon, 16 Oct 2000 12:08:54 +0000 Subject: [PATCH] no weird desktop switching with race conditions when enabling the mac menu svn path=/trunk/kdebase/kwin/; revision=68003 --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index fbe265bda3..c66cb4d265 100644 --- a/client.cpp +++ b/client.cpp @@ -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