Skip to content

Commit

Permalink
mac: Wait a bit before activating app at startup.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Feb 12, 2020
1 parent 6fe6946 commit 0a6d80a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -244,6 +244,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
[i activateWithOptions:NSApplicationActivateIgnoringOtherApps];
break;
}
SDL_Delay(300); /* !!! FIXME: this isn't right. */
[NSApp activateIgnoringOtherApps:YES];
}

Expand Down

0 comments on commit 0a6d80a

Please sign in to comment.