From 7e4f0508cf39b94fe899ee15effe5a46f53226e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 27 Aug 2004 12:24:30 +0000 Subject: [PATCH] Don't apply strict placement policy to dialogs without any parent at all. (for kdialog --geometry etc.). svn path=/trunk/kdebase/kwin/; revision=341782 --- manage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manage.cpp b/manage.cpp index 8799b27942..f845a7a5d5 100644 --- a/manage.cpp +++ b/manage.cpp @@ -221,7 +221,12 @@ bool Client::manage( Window w, bool isMapped ) else if( isDialog() && hasNETSupport()) // if the dialog is actually non-NETWM transient window, don't try to apply placement to it, // it breaks with too many things (xmms, display) - ; // force using placement policy + { + if( mainClients().count() >= 1 ) + ; // force using placement policy + else + usePosition = true; + } else if( isSplash()) ; // force using placement policy else