[macOS] Always use "Regular" activation policy for GUI, and headless main loop for command line only tools.

This commit is contained in:
Pāvels Nadtočajevs 2025-08-20 10:07:33 +03:00
parent 28bd72a7e1
commit 6e76a9467f
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
3 changed files with 22 additions and 4 deletions

View file

@ -1153,7 +1153,7 @@ OS_MacOS_NSApp::OS_MacOS_NSApp(const char *p_execpath, int p_argc, char **p_argv
[GodotApplication sharedApplication];
// In case we are unbundled, make us a proper UI application.
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
// Menu bar setup must go between sharedApplication above and
// finishLaunching below, in order to properly emulate the behavior