yabai: Some applications raise even though autofocus is set

I have just installed yabai with a minimal setup (to use “focus follow mouse” feature, without auto raise):

yabai -m config focus_follows_mouse autofocus

It works great, except for Firefox (at least that’s the only application I’ve noticed so far). In addition to getting focused when being mouse over, Firefox also get raised.

Any idea why/how to fix this?

Thanks,

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 6
  • Comments: 16 (2 by maintainers)

Most upvoted comments

Today’s Firefox Nightly build 97.0a1 (2022-01-07) available on https://www.mozilla.org/en-CA/firefox/channel/desktop/ has this bug fixed. I plan to use this build until the fix is released in the stable version.

I have this issue with Microsoft Teams (but only the main chat window, not the call in-progress ’ window) and Mattermost. Maybe something to do with electron apps? Someone above mentioned vscode which I think is also an electron app?

Yeah, the FireFox issue is really annoying. A big reason I’m only using it in a minor way on a Mac. On Linux it’s my main development browser.

Maybe it’s related to some cross-platform app tech stack? The ones I see that this happens with are Intellij IDEA, PHPStorm, PyCharm (all Jetbrains IDEs which are java Swing apps and essentially, the same app) as well as Firefox and Blender, both of which use custom GUI toolkits. It could be Swing / other custom GUI toolkits not playing nice. On the other hand other cross platform apps seem fine like Audacity, Bitwig, Visual Studio Code, Slack, etc. Compass, mentioned above, seems to be an electron app that has issues though other electron apps seem ok (Slack, VSC) white yEd is also a cross-platform app. Not sure what the common thing they have is that’s preventing autofocus from working though.

To add here, this seems to be happening to me also, but with intellij IDEA, I think I can live with it though.

Thanks for this!