Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Smart window placement #269
Smart window placement chooses the best place to position a window in the screen based on the available free screen areas. It chooses a position which minimizes window overriding. It is an option on several window managers, like
The algorithm should not be that difficult to be implemented. It would collect rectangles of free spaces on the screen and sort them by size (let's say by their area), choosing one where the window would best fit.
It would be very nice if
JWM has a window placement policy to place windows with no overlap. Of course it falls back to the default policy if no position is available. It’s available as a
<Group> <Option>tiled</Option> </Group>
An improved placement policy to minimize overlap would be nice to have.
I had found the
The smart placement can be an enhancement to the
If there is absolutely no free desktop area available, it could use a random positioning (like