mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
Fix can't click dialogs on macOS 10.3
This commit is contained in:
parent
992fafc4bc
commit
bbedc4e1f1
@ -993,6 +993,11 @@ static void Platform_InitStopwatch(void) {
|
||||
#if defined CC_BUILD_MACOS
|
||||
static void Platform_InitSpecific(void) {
|
||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||
#ifdef __ppc__
|
||||
/* TransformProcessType doesn't work with kCurrentProcess on older macOS */
|
||||
GetCurrentProcess(&psn);
|
||||
#endif
|
||||
|
||||
/* NOTE: Call as soon as possible, otherwise can't click on dialog boxes or create windows */
|
||||
/* NOTE: TransformProcessType is macOS 10.3 or later */
|
||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||
|
Loading…
x
Reference in New Issue
Block a user