summaryrefslogtreecommitdiffstats
path: root/platform/macos/godot_application_delegate.mm
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-07 11:07:09 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-07 11:07:09 +0100
commit08eaeff6402b92d3df4268321ee1ceea8f2bfd5a (patch)
treeea3df25a88dbd91b01636a04260af3694c3f9a07 /platform/macos/godot_application_delegate.mm
parentf5b238f111b8d176547339f4ec3e37fbdd1d552e (diff)
parent84380a94f776c8c1e7786d2eb3fb811789f42639 (diff)
downloadredot-engine-08eaeff6402b92d3df4268321ee1ceea8f2bfd5a.tar.gz
Merge pull request #88050 from bruvzg/sec_state
[macOS] Enabled secure restorable state.
Diffstat (limited to 'platform/macos/godot_application_delegate.mm')
-rw-r--r--platform/macos/godot_application_delegate.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/macos/godot_application_delegate.mm b/platform/macos/godot_application_delegate.mm
index a1925195b8..c1de8ade58 100644
--- a/platform/macos/godot_application_delegate.mm
+++ b/platform/macos/godot_application_delegate.mm
@@ -35,6 +35,10 @@
@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.