aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hooper <danielchasehooper@gmail.com>2025-05-13 17:00:14 -0700
committerGitHub <noreply@github.com>2025-05-13 17:00:14 -0700
commit43f3c19eca27157897e71a4fea320db8af9c379b (patch)
tree3cf99859c414e793fa3d9237490f043ece65f197
parent202f41b1ce892e1a3fcd25b5c9497a5871ac57a3 (diff)
Set activation policy before making window fullscreen
-rw-r--r--sokol_app.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index c858d53f..a2d34ee7 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -4097,11 +4097,11 @@ _SOKOL_PRIVATE void _sapp_macos_frame(void) {
#endif
[_sapp.macos.window center];
_sapp.valid = true;
+ NSApp.activationPolicy = NSApplicationActivationPolicyRegular;
if (_sapp.fullscreen) {
/* ^^^ on GL, this already toggles a rendered frame, so set the valid flag before */
[_sapp.macos.window toggleFullScreen:self];
}
- NSApp.activationPolicy = NSApplicationActivationPolicyRegular;
[NSApp activateIgnoringOtherApps:YES];
[_sapp.macos.window makeKeyAndOrderFront:nil];
_sapp_macos_update_dimensions();