[macOS] Enabled secure restorable state.

(cherry picked from commit 84380a94f7)
This commit is contained in:
bruvzg 2024-02-07 10:59:35 +02:00 committed by Rémi Verschelde
parent 601afdf1d5
commit 776696eb64
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
@implementation GodotApplicationDelegate @implementation GodotApplicationDelegate
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
return YES;
}
- (void)forceUnbundledWindowActivationHackStep1 { - (void)forceUnbundledWindowActivationHackStep1 {
// Step 1: Switch focus to macOS SystemUIServer process. // Step 1: Switch focus to macOS SystemUIServer process.
// Required to perform step 2, TransformProcessType will fail if app is already the in focus. // Required to perform step 2, TransformProcessType will fail if app is already the in focus.