SDL/src/dialog
Ryan C. Gordon de5cb9db23 dialog: Cocoa backend should reactivate the app after the modal dialog.
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.

(cherry picked from commit 57346f2ba8)
2025-05-02 01:54:56 -04:00
..
android Updated copyright for 2025 2025-01-01 07:45:52 -08:00
cocoa dialog: Cocoa backend should reactivate the app after the modal dialog. 2025-05-02 01:54:56 -04:00
dummy Updated copyright for 2025 2025-01-01 07:45:52 -08:00
haiku Updated copyright for 2025 2025-01-01 07:45:52 -08:00
unix Change DBUS introspection timer from INFINITE -> DEFAULT when introspecting available dialog services 2025-01-28 05:13:35 -08:00
windows [Windows]: dialog: Add OFN_OVERWRITEPROMPT to save dialogs (#12782) 2025-04-08 21:34:23 -07:00
SDL_dialog.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_dialog.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_dialog_utils.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_dialog_utils.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00