• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From https://core.tcl-lang.org/tk/info/ed7cfbac8db11aa0
2
3Note: the diff here is hand-tweaked so that it applies cleanly to both Tk 8.6.8 and 8.6.13.
4
5diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
6index 71d7c3385..e6a68356c 100644
7--- a/macosx/tkMacOSXInit.c
8+++ b/macosx/tkMacOSXInit.c
9@@ -128,6 +128,16 @@ static int		TkMacOSXGetAppPathCmd(ClientData cd, Tcl_Interp *ip,
10     observe(NSApplicationDidChangeScreenParametersNotification, displayChanged:);
11     observe(NSTextInputContextKeyboardSelectionDidChangeNotification, keyboardChanged:);
12 #undef observe
13+}
14+
15+
16+/*
17+ * Fix for 10b38a7a7c.
18+ */
19+
20+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
21+{
22+    return YES;
23 }
24
25 -(void)applicationWillFinishLaunching:(NSNotification *)aNotification
26