koekeishiya / yabai

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

How to ensure moved window stays on top when switching spaces in Yabai? #1874

Closed roelvangils closed 9 months ago

roelvangils commented 1 year ago

With these shortcuts I can easily throw any window from one space to another, but how do I ensure that the window also always stays on top? After all, that depends on the stacking of the windows in the other space, right? The moved window may sometimes slide under another window. So, right before moving, I ought to give the window a "z-index" of 999, to put it in CSS terms). How do I do achieve this with Yabai?

ctrl + cmd - left : yabai -m window --space prev && yabai -m space --focus prev
ctrl + cmd - right : yabai -m window --space next && yabai -m space --focus next
koekeishiya commented 11 months ago

Uh, if the goal is to interact with this window right away you can just do: yabai -m window --space prev --focus

If you actually want to make the window on top without focusing it, you can do yabai -m window --space prev --layer above but you should be wary that using the above layer may cause sub-dialogs/menus/windows/dropdowns to not functioning very well.

koekeishiya commented 9 months ago

The layer issues should no longer be present after #2062