summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-06 02:45:13 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-06 02:45:13 (GMT)
commited12d0a17abb7141d6017d1653974bd156e6e76c (patch)
tree7557f6398a7a2f44287474470e9c0da8fac553e3 /macosx
parentc5ff938e4a4573d9b42da8dcce7df2e788ef5c10 (diff)
downloadtk-ed12d0a17abb7141d6017d1653974bd156e6e76c.zip
tk-ed12d0a17abb7141d6017d1653974bd156e6e76c.tar.gz
tk-ed12d0a17abb7141d6017d1653974bd156e6e76c.tar.bz2
Fix for crash in deleted toplevels when not removed from Cocoa window menu; thanks to Marc Culler for patch
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 210fd6f..c824afc 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -788,6 +788,7 @@ TkWmDeadWindow(
NSWindow *window = wmPtr->window;
if (window && !Tk_IsEmbedded(winPtr) ) {
[[window parentWindow] removeChildWindow:window];
+ [window setExcludedFromWindowsMenu:YES];
[window close];
TkMacOSXUnregisterMacWindow(window);
if (winPtr->window) {