window manager problem
Olivier Fourdan
fourdan at xfce.org
Sun Jul 27 01:13:51 CEST 2003
Bernhard,
On Sat, 2003-07-26 at 17:08, Bernhard Walle wrote:
> Another small question: Xfwm places windows initial with no space on the
> left if left-aligned but with a few pixels on the right when right-aligned.
> Is this intentional?
Yes and no. It's a side effect.
For smart placement, xfwm4 computes overlapping of the new window with
existing windows by trying all possible positions and taking the best
postion at the end (best means with as little overlapping as possible)
As testing all possible position would require a lot of processing (on
1280x1024 screen with already 10 windows mapped, that would be 13107200
iterations) the step is arbitrary set to 8 (in that case, we do "just"
51200 iterations, that's a lot less).
Unfortunately, the size of the window itself including decorations and
possible user defined margins make that the rounding of (screen-width -
window-width) / 8 may leave up to 7 pixels on the right or bottom side.
It's the (somehow small) price to pay for this optimization...
Cheers,
--
Olivier Fourdan - fourdan at xfce.org
Interoperability is the keyword, uniformity is a dead end.
http://www.xfce.org
More information about the Xfce4-dev
mailing list