aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sokol_app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 411bd607..4e8dccb8 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -2815,13 +2815,13 @@ _SOKOL_PRIVATE void _sapp_macos_run(const sapp_desc* desc) {
_sapp_init_state(desc);
_sapp_macos_init_keytable();
[NSApplication sharedApplication];
+ // set the application dock icon as early as possible, otherwise
+ // the dummy icon will be visible for a short time
sapp_set_icon(&_sapp.desc.icon);
NSApp.activationPolicy = NSApplicationActivationPolicyRegular;
_sapp.macos.app_dlg = [[_sapp_macos_app_delegate alloc] init];
NSApp.delegate = _sapp.macos.app_dlg;
[NSApp activateIgnoringOtherApps:YES];
- // set the application dock icon as early as possible, otherwise
- // the dummy icon will be visible for a short time
[NSApp run];
// NOTE: [NSApp run] never returns, instead cleanup code
// must be put into applicationWillTerminate