I'm concerned, however, that a file copy dialog box, in the middle of copying files, randomly for no reason took focus on Bas's system.
Well, it wasn't for no reason. It was churning away for an hour and then popped up a dialog asking me if I wanted to replace the files that were already there.
This isn't the fault of the OS... Windows is a platform. Without user mode applications running on it, well, it becomes just an incredibly over-engineered CPU heater. [NoteThereIsALineBreakHereButTheQuoteBoxCan'tHandleThem] Send feedback to the application owners and ask them to add the ability to configure how the application grabs your attention when it needs it and is currently out of focus.
One could argue if the file copy thing is part of the OS or not, but still. It is the fault of the OS for making this possible in the first place.
What are the heuristics Windows should use to accomplish this? How does Windows know what's right for all applications in all contexts? Applications are ultimately responsible for doing things that do not piss off users, right?
Here are the heuristics: it's always annoying. Windows should never steal focus. I can't imagine a single situation where you want an application to suddenly take over and grab all the key presses and mouse clicks you thought you were making in another situation. Can you?