[macOS] Enabled secure restorable state.
(cherry picked from commit 84380a94f7
)
This commit is contained in:
parent
a671234483
commit
54393c53f3
1 changed files with 4 additions and 0 deletions
|
@ -170,6 +170,10 @@ static NSCursor *cursorFromSelector(SEL selector, SEL fallback = nil) {
|
|||
|
||||
@implementation GodotApplicationDelegate
|
||||
|
||||
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)forceUnbundledWindowActivationHackStep1 {
|
||||
// Step 1: Switch focus to macOS SystemUIServer process.
|
||||
// Required to perform step 2, TransformProcessType will fail if app is already the in focus.
|
||||
|
|
Loading…
Reference in a new issue