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.
-- 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