From 54393c53f33702a34bf8b139f4ad0b6118637a62 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:59:35 +0200 Subject: [PATCH] [macOS] Enabled secure restorable state. (cherry picked from commit 84380a94f776c8c1e7786d2eb3fb811789f42639) --- platform/osx/os_osx.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 3b19600560e..6956d6c789a 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -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.