From 855786a9876f62a112239d408ada60d175cba0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 27 Jan 2005 14:21:31 +0000 Subject: [PATCH] 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 --- manage.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manage.cpp b/manage.cpp index bbfaf69e98..01776e0d6e 100644 --- a/manage.cpp +++ b/manage.cpp @@ -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; }