! 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 !
Smart placement should not place windows on screen borders


Description Lorenzo S. 2014-03-27 11:51:16 CET
I find quite annoying the fact that smart placement places windows on screen borders. If I have maximized windows, for example, I have to move smart-placed new-windows from the top of the screen to access the maximized window title bar, or the same thing for right scrollbars, etc...

I put some lines into `placement.h/c` source to avoid this, but I know that's only a patch for my own comfort. For sure, a non-default option in config dialog would be better. I added these lines before the last two in smartPlacement() function:

    if (best_x < xmin + SMART_PLACEMENT_PADDING) best_x = xmin + SMART_PLACEMENT_PADDING;
    if (best_y < ymin + SMART_PLACEMENT_PADDING) best_y = ymin + SMART_PLACEMENT_PADDING;
    if (best_x > xmax - SMART_PLACEMENT_PADDING) best_x = xmax - SMART_PLACEMENT_PADDING;
    if (best_y > ymax - SMART_PLACEMENT_PADDING) best_y = ymax - SMART_PLACEMENT_PADDING;

Where `SMART_PLACEMENT_PADDING` is defined in `placement.h` as 16.

I don't know how this implementation is related or can affect similar still opened reports, such as #4621 and #9976.
Comment 1 Git Bot editbugs 2020-05-29 12:00:20 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/146.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #10771

Reported by:
Lorenzo S.
Reported on: 2014-03-27
Last modified on: 2020-05-29


Olivier Fourdan
CC List:
1 user




Additional information