Window placement off-screen

kenneth marken kemarken at broadpark.no
Thu Apr 28 17:58:54 CEST 2011


On 28. april 2011 17:53, Olivier Fourdan wrote:
> On Thu, Apr 28, 2011 at 5:48 PM, Michael Orlitzky<michael at orlitzky.com>  wrote:
>> Right now, "at the center" with the slider all the way to the left. I've
>> tried every other combination with similar results, for emacs and evince
>> at least.
>
> Well, I gave you the explanation, what happens is these applications
> resize their own window after the initial mapping, thus breaking the
> optimal position computation.
>
> The fix is easy, I could make xfwm4 move such windows so that their
> content remains visible (the patch is a 1 liner). But I am not sure
> about the side effects of such a behaviour, as many apps may want to
> resize their windows and do not expect to be moved.
>
> IMHO, the best fix would be for the apps to compute their size before
> doing the initial mapping, as I think doing a mapping followed by a
> resize is quite sub-optimal.
>
How about adding a option to place programs in the upper left corner? 
This as it seems most programs resize downwards and to the right.

centering them on screen is only really practical if one can calculate 
the center of the program window, right?

or maybe have them relocated to the upper left corner if the WM sense 
that they resize right after creation with no mouse or keyboard input 
related to said change?



More information about the Xfce mailing list