This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: select last used window when moving focus up or to the left
When bismuth finds two windows are equally distanced from the current window, the last used window will be chosen when focus is moved via keyboard shortcuts. Before, the closest windows were always determined based on the top-left corner of each window. This is fine when focusing a window below or to the right, since adjacent edge aligned windows will have the top-left corner on the same line either horizontally or vertically. When moving the focus up or to the left, however, this is no longer guaranteed. Even though the bottom of two candidate windows might be edge to edge with the current window, the top-left corners might be on different levels since the candidate windows don't have to have the same height. To correctly select the last used adjacent edge aligned window to the top or to the left, the bottom-right corner will be used to find the closest windows.
- Loading branch information