mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fixed love.app opening in the background instead of the foreground in OS X
This commit is contained in:
@@ -229,6 +229,15 @@ static void CustomApplicationMain (int argc, char **argv)
|
|||||||
if (!CPSSetFrontProcess(&PSN))
|
if (!CPSSetFrontProcess(&PSN))
|
||||||
[SDLApplication sharedApplication];
|
[SDLApplication sharedApplication];
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
{
|
||||||
|
ProcessSerialNumber psn;
|
||||||
|
|
||||||
|
if (!GetCurrentProcess(&psn)) {
|
||||||
|
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||||
|
SetFrontProcess(&psn);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif /* SDL_USE_CPS */
|
#endif /* SDL_USE_CPS */
|
||||||
|
|
||||||
/* Set up the menubar */
|
/* Set up the menubar */
|
||||||
|
|||||||
Reference in New Issue
Block a user