diff --git a/platform/macosx/SDLMain.m b/platform/macosx/SDLMain.m index a714f85ea..4adae7219 100644 --- a/platform/macosx/SDLMain.m +++ b/platform/macosx/SDLMain.m @@ -229,6 +229,15 @@ static void CustomApplicationMain (int argc, char **argv) if (!CPSSetFrontProcess(&PSN)) [SDLApplication sharedApplication]; } +#else + { + ProcessSerialNumber psn; + + if (!GetCurrentProcess(&psn)) { + TransformProcessType(&psn, kProcessTransformToForegroundApplication); + SetFrontProcess(&psn); + } + } #endif /* SDL_USE_CPS */ /* Set up the menubar */