bspwm
bspwm copied to clipboard
How does resizing nodes work?
How does it choose which two nodes to resize when using super + right mouse drag?
using the window that the cursor is above:
- gets the "handle": the corner or side that the cursor is closest to, depending on if resize corner or side is the action.
- it uses the handle to determine the node(s) to resize using find_fence().
- find_fence returns a inner node whose split_ratio resize_client() adjusts as you grab and drag