News for hackers. Stuff that matters.
Re:Ask HN: Why does macOS still lack focus stealing preventi... by alphadatavault on Thursday January 08, 2026 @06:27PM (#46547988)
This is a perfect example of the tension between Apple’s HIG (which explicitly discourages focus stealing) and the actual implementation of AppKit. activateIgnoringOtherApps:YES is effectively a "selfish" API—it assumes the developer's intent is more important than the user's current context.

The fact that we have to rely on Hammerspoon or defaults write hacks in 2026 is a testament to the "black box" nature of WindowServer. It’s one of the few areas where macOS feels significantly less mature than Linux/X11, where "Focus Stealing Prevention" has been a standard toggle for decades.

There are no comments on this comment yet.