! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfwm4's window placement is almost perfect
Status:
RESOLVED: WONTFIX
Severity:
trivial

Comments

Description Andrew Conkling 2004-12-02 13:40:36 CET
I really appreciate that xfwm4 "intelligently" places windows to minimise 
overlap.  However, I notice that windows are opened a few pixels away from the 
border or from other apps.  I use Smallscreen as my xfwm4 theme, which has a 
small border, but I'd think that xfwm4 would account for that when determining 
the distance.

Also, it always positions away from the notes I have shown on my screen, but I'd 
think those were on a different "level" than the apps.
Comment 1 Olivier Fourdan editbugs 2004-12-02 18:21:48 CET
xfwm4 computes the best place by evualating the overlap between windows.

It uses a step of 8 pixels for that. 

On a anverage screen of 1024x768, it means 96 iterations.

(1024 / 8) x (768 / 8) = 96

To achieve a 1 pixel precision, that would require

1024 x 768 = 1024768

For each iterations, xfwm4 has to go through every window present (and visible)
and compute the overlap.

We shall stay with 8 pixel steps.
Comment 2 Tarmo T 2005-07-08 15:43:00 CEST
Wouldn't it be possible to use the window snapping function after the initial
placement so if the window would have been placed close enought to another
window  it would actually be snapped against the other window?

Bug #560

Reported by:
Andrew Conkling
Reported on: 2004-12-02
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Additional information