feat: automatic window placement

With automatic placement, new top-level windows will be placed to
minimize overlap with other windows already on screen.
This commit is contained in:
Andrew J. Hesford 2023-12-24 13:57:46 -05:00 committed by Johan Malm
parent ef62d47ad1
commit 52aafcc054
7 changed files with 548 additions and 5 deletions

View file

@ -134,10 +134,12 @@ this is for compatibility with Openbox.
## PLACEMENT
*<placement><policy>* [center|cursor]
*<placement><policy>* [center|automatic|cursor]
Specify a placement policy for new windows. The "center" policy will
always place windows at the center of the active output. The "cursor"
policy will center new windows under the cursor. Default is "center".
always place windows at the center of the active output. The "automatic"
policy will try to place new windows in such a way that they will
have minimal overlap with existing windows. The "cursor" policy will
center new windows under the cursor. Default is "center".
## WINDOW SWITCHER