yabai icon indicating copy to clipboard operation
yabai copied to clipboard

Prevent app from being focused when switching space

Open oddnugget opened this issue 1 year ago • 2 comments

Greetings, ever since upgrading to MacOs Sonoma i have a strange issue. When i am screensharing in tuple and i do a yabai -m space --focus <space-id>, the tuple app popup in the menu bar opens up and takes focus as the frontmost application.

I have a rule already set up to not manage tuple: yabai -m rule --add app="^Tuple$" manage=off

And querying for windows in the space does not return a tuple window. Most probably because it is not a window but a popover or whatever they are called.

I'm unsure if this is an issue on yabai side or on tuple itself, but i have confirmed that the issue is not present when yabai is not running (switching spaces natively with mission control).

Is there a way to prevent the app from being focused when switching spaces?

oddnugget avatar Nov 06 '23 16:11 oddnugget

This look like same problem with Microsoft Teams. Refer to https://github.com/koekeishiya/yabai/issues/74

Mmasson-01 avatar Nov 07 '23 11:11 Mmasson-01

It looks yabai is ignoring windows with the AXPopover role by default, see #162. This means that window events are not reported and a signal like the one described in #74 doesn't work. Yabai just outputs ignoring AXPopover window Tuple.

oddnugget avatar Nov 10 '23 08:11 oddnugget

Popover windows are not ignored in the latest version of yabai. Closing this as duplicate of #2041

koekeishiya avatar Mar 12 '24 22:03 koekeishiya