Merge pull request #43678 from bruvzg/fix_focus_loss

Fix focus loss on macOS.
This commit is contained in:
Rémi Verschelde 2020-11-19 11:55:37 +01:00 committed by GitHub
commit 93936ad978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3384,9 +3384,6 @@ OS_OSX::OS_OSX() {
// Implicitly create shared NSApplication instance
[GodotApplication sharedApplication];
// In case we are unbundled, make us a proper UI application
[NSApp setActivationPolicy:(NSApplicationActivationPolicyAccessory)];
// Menu bar setup must go between sharedApplication above and
// finishLaunching below, in order to properly emulate the behavior
// of NSApplicationMain