Skip to content

Chrome "app" closing on focus via Yabai #2816

Description

@bcspragu

This is a strange bug that started manifesting recently, I don't know if it's a yabai issue, a Chrome issue, both, or neither. Steps to (hopefully) reproduce:

  1. Take a page in Chrome (I've tested with Google Calendar + GitHub, but it seems page-independent)
  2. Go to Chrome three dot menu > Cast, Save, and Share > Install <app name>
  3. The Chrome app opens in a new window
  4. Focus to it with yabai (i.e. using a keyboard shortcut)

The window will reliably, 100% of the time, close. If I click the window to focus it with my mouse, it's fine. If I use Yabai to focus away from the Chrome app, or to move windows around, etc, it's fine, normal behavior. But focusing from an adjacent app to a Chrome app window will cause it to close. I accidentally do this a dozen times a day (open Google Calendar Chrome app, try to focus it with keyboard shortcuts, it closes)

This doesn't happen with other windows (i.e. non-Chrome macOS apps like terminals, editors, etc, etc), I can give them focus with the keyboard just fine. But it didn't used to be an issue with Chrome apps either until recently (maybe the last time I updated yabai?)

Also, a point of clarification in case it isn't clear, I'm using "Chrome app" to mean "website 'installed' via Chrome to act like a native application", so it shows up in Spotlight, and renders without a URL bar or normal browser window chrome.

I'm running yabai-v7.1.25, the latest, on macOS Tahoe, Version 26.5.1 (25F80)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions