Similarly, when you switch to another app via command+tab, the keyboard events are being sent to the previous app for a couple of hundred milliseconds.
I cannot remember the number of times I quit the wrong app because of this or pasted something to the wrong window. I genuinely have to wait a second on every app switch.
It seems mindbending that this would pass any stage of testing. As a non macOS user, this feels like a complete dealbreaker for ever considering a switch. But macOS is demonstrably popular, and I haven't heard this complaint before. Is it less of an issue in reality than I imagine it would be?
Windows also has problems with mouse clicks and window stacking.
And an ugly bug, when closing a window with the mouse on "x" button, will also close the window below.
This also happens on switching virtual desktops, even with reduce animations there is a 100ms+ delay before any input on the new desktop will be sent to the correct app.