bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

How does resizing nodes work?

Open ghost opened this issue 3 years ago • 1 comments

How does it choose which two nodes to resize when using super + right mouse drag?

ghost avatar Nov 30 '21 05:11 ghost

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

ortango avatar Dec 05 '21 18:12 ortango