Windows has had a “prevent apps from stealing focus” option for at least a decade. It was one of the things that I still dislike the most about macOS, and Apple can absolutely address this.
Windows has no such option, and regularly steals focus, particularly Visual Studio/Debug tools/applications loading. It had an option for a short period with the original TweakUI, but Microsoft removed support for it even in the registry.
No OS should steal focus, Windows absolutely is guilty of it.
I've found that the login dialog in Win 11 no longer consistently takes focus on the password field. Really annoying to login blind and find your typing was rejected because it doesn't do the sensible thing any more.
Windows itself isn't guilty of this in my experience (lifetime of use until Linux switch last year), but other apps like shitty Akamai. Some years ago a coworker wrote this blog post and a simple tool to find out which programs are doing it: https://forwardscattering.org/post/30
GNOME on Linux prevents it. You get a notification "Discord updater is ready" instead which you can activate if you want to give it focus - which I never do. F the Discord updater.
When you launch an application or open a dialog, you expect the new window to "steal" focus. When you close a dialog, you expect focus to go back to the main window. If it didn't, it would impair usability.
So how would an OS decide when "stealing focus" is allowed and when it is not?
Like, I'm frustrated with it too. I hate when an app pops up a dialog while I'm typing and my next keystroke dismisses it and I have no idea what I've done. But at the same time, I'd hate to have to manually switch focus to a pop-up dialog every single time before dismissing it with Enter or Escape too -- that would be way too annoying in the other direction.
Someone1234|1 month ago
No OS should steal focus, Windows absolutely is guilty of it.
AnyTimeTraveler|1 month ago
I chose what happens after. Can recommend. I wasn't even aware of my privilege.
kevin_thibedeau|1 month ago
pixelpoet|1 month ago
jdiff|1 month ago
WD-42|1 month ago
crazygringo|1 month ago
When you launch an application or open a dialog, you expect the new window to "steal" focus. When you close a dialog, you expect focus to go back to the main window. If it didn't, it would impair usability.
So how would an OS decide when "stealing focus" is allowed and when it is not?
Like, I'm frustrated with it too. I hate when an app pops up a dialog while I'm typing and my next keystroke dismisses it and I have no idea what I've done. But at the same time, I'd hate to have to manually switch focus to a pop-up dialog every single time before dismissing it with Enter or Escape too -- that would be way too annoying in the other direction.
klondike_klive|1 month ago