Skip to content

Instantly share code, notes, and snippets.

@khenriks
Created March 9, 2014 04:37
Show Gist options
  • Save khenriks/9442982 to your computer and use it in GitHub Desktop.
Save khenriks/9442982 to your computer and use it in GitHub Desktop.
diff --git a/dlls/winemac.drv/cocoa_main.m b/dlls/winemac.drv/cocoa_main.m
index 6682f98..6f48343 100644
--- a/dlls/winemac.drv/cocoa_main.m
+++ b/dlls/winemac.drv/cocoa_main.m
@@ -106,6 +106,9 @@ static void run_cocoa_app(void* info)
*/
int macdrv_start_cocoa_app(unsigned long long tickcount)
{
+ ProcessSerialNumber psn = { 0, kCurrentProcess };
+ TransformProcessType(&psn, kProcessTransformToForegroundApplication);
+
int ret = -1;
CFRunLoopSourceRef source;
struct cocoa_app_startup_info startup_info;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment