-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve window positioning when toggling tiling on
This change updates the tiling layout code to attempt to preserve relative window positioning and sizes as much as possible when turning on toggling. At a high level, the algorithm for this is to iteratively: * Find candidate positions to "split" the screen based on window geometry * Determine which candidate positions best minimize overlap with windows * Assign windows to either side of the split - if a side has one window, insert a `Mapped` leaf into the tree, otherwise create a `Group` and placeholders for the windows to be solved. * Repeat this process until all placeholder leafs have been solved.
- Loading branch information
1 parent
c9f7402
commit dca167d
Showing
2 changed files
with
203 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters