koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.2k stars 645 forks source link

Switching from stack to bsp layout rearranges the windows #1803

Closed georg3tom closed 9 months ago

georg3tom commented 1 year ago

When transitioning from the BSP layout to the stack layout and subsequently switching back to BSP, rearranges the windows in the space.

The window at the top of the stack is relocated to the top left corner of the screen, which is not the desired behaviour. Ideally, the layout should be preserved when switching back to the bsp layout.

Keybind used to change the layouts.

alt - m : yabai -m space --layout $(yabai -m query --spaces --space | jq -r 'if .type == "bsp" then "stack" else "bsp" end')

sys info

❯ yabai --version
yabai-v5.0.6

~
❯ nvram -p | grep boot-args
boot-args   -arm64e_preview_abi

~
❯ sw_vers
ProductName:        macOS
ProductVersion:     13.4.1
BuildVersion:       22F82
edofe99 commented 1 year ago

This is something that happens even without changing the layout when you restart. Eg. you're on BSP, you restart yabai and windows layout will change.

This is something that bothered me too, don't think a fix regarding this will come soon. Suggestion is to stick using either BSO or stack, when needed you can float certain windows or make them full screen and then back into the layout without having the whole thing rearranged.

Hope that helps.

victortrac commented 1 year ago

The same thing happens if you full-screen and un-fullscreen a youtube video.

koekeishiya commented 9 months ago

This is intentional. Not a particularly easy problem to solve.