Giving up on #78082, at least temporarily. Don't force using placement

policy for dialogs if they request a specific geometry. Too bad apps
always specify geometry for dialogs, so if they specify silly positions
like under mouse or centered on the screen the only solution for now
is choosing ignoring requested position in window-specific settings.
BUG: 78082

svn path=/trunk/kdebase/kwin/; revision=382906
This commit is contained in:
Luboš Luňák 2005-01-27 14:21:31 +00:00
parent 115154abd2
commit 855786a987

View file

@ -228,7 +228,19 @@ bool Client::manage( Window w, bool isMapped )
// it breaks with too many things (xmms, display)
{
if( mainClients().count() >= 1 )
{
#if 1
// TODO #78082 - Ok, it seems there are after all some cases when an application has a good
// reason to specify a position for its dialog. Too bad other WMs have never bothered
// with placement for dialogs, so apps always specify positions for their dialogs,
// including such silly positions like always centered on the screen or under mouse.
// Using ignoring requested position in window-specific settings helps, but at least
// for Qt apps this should work better.
usePosition = true;
#else
; // force using placement policy
#endif
}
else
usePosition = true;
}