mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
mac: Wait a bit before activating app at startup.
This is obnoxious and wrong, but the patch that activates the Dock before activating the app fixes the _menu_ not responding on Catalina, but the first window created by the app won't have keyboard focus without a small delay inserted. This obviously needs a better solution, but it gets it limping along correctly for now.
This commit is contained in:
parent
6fe6946a2f
commit
0a6d80abf7
@ -244,6 +244,7 @@ static void Cocoa_DispatchEvent(NSEvent *theEvent)
|
|||||||
[i activateWithOptions:NSApplicationActivateIgnoringOtherApps];
|
[i activateWithOptions:NSApplicationActivateIgnoringOtherApps];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
SDL_Delay(300); /* !!! FIXME: this isn't right. */
|
||||||
[NSApp activateIgnoringOtherApps:YES];
|
[NSApp activateIgnoringOtherApps:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user