mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-28 20:01:04 +01:00
Otherwise the window won't have focus until you click on it again. Calling makeKeyAndOrderFront isn't enough to fix it, either. This trick comes from a similar problem we solve in our applicationDidFinishLaunching implementation: activate (give app focus to) the system Dock, as something that definitely exists that isn't us and is harmless to activate, and then activate us right afterwards. This unconfuses whatever is getting confused inside Cocoa. Fixes #12684.