From 4c37fff4965245fd6befeba8dc07475b096b261b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Oct 2023 11:23:56 +0530 Subject: [PATCH] Fix secure restore state runtime warning from cocoa being printed to stderr --- glfw/cocoa_init.m | 4 ++++ 1 file changed, 4 insertions(+) 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