Skip to content

Why does my "spaces" query return bsp on type when it is stacked? #1795

Answered by koekeishiya
mastoj asked this question in Q&A
Discussion options

You must be logged in to vote

Because the space itself is using a bsp layout. The two windows are stacked, meaning they share the same node in the bsp-layout.
You want to query information about the window (yabai -m query --windows --window for the focused window, use a selector to get a different window), and check the stack-index property. If non-zero, the window is inside a stack, and if zero it is not stacked.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mastoj
Comment options

Answer selected by mastoj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants