Don't apply strict placement policy to dialogs without any parent at all.

(for kdialog --geometry etc.).

svn path=/trunk/kdebase/kwin/; revision=341782
This commit is contained in:
Luboš Luňák 2004-08-27 12:24:30 +00:00
parent cd99ad5168
commit 7e4f0508cf

View file

@ -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