Focus stealing prevention exists for two main reasons: One is security, since we need to prevent rogue apps from deceiving users into e.g. typing their password into another window. If apps can silently claim keyboard focus and open their own window over the currently focused one, this enables phishing and other similar attacks. The other...
Yeah, that would help. There’s also the smaller risk of “I was going to click on something else, and this new window popped in under the mouse”
I think some applications also don’t accept input for the first couple seconds to prevent this. I vaguely remember something that had the dialogue boxes count down from 5 before you could click or keyboard-interact them.
Feels like the kind of problem with a lot of edge cases, but even catching 70% of the problems would be a big improvement