diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 2b662cec3..dc5df1382 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -308,6 +308,10 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende return NSTerminateCancel; } +- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app { + return YES; +} + static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL; - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag