summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-06 02:44:38 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-06 02:44:38 (GMT)
commit7c79a335a5383d7bfd8f6a42f36f5fbd5380e944 (patch)
tree036d6f7a0ba3b3d52b69153eb569af27ad0eebec
parent7ec6687e43e5585e8542a975da8b0fe768cd2b3f (diff)
downloadtk-7c79a335a5383d7bfd8f6a42f36f5fbd5380e944.zip
tk-7c79a335a5383d7bfd8f6a42f36f5fbd5380e944.tar.gz
tk-7c79a335a5383d7bfd8f6a42f36f5fbd5380e944.tar.bz2
Fix for crash in deleted toplevels when not removed from Cocoa window menu; thanks to Marc Culler for patch
-rw-r--r--macosx/tkMacOSXWm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 73ab21c..4f7b066 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -784,6 +784,7 @@ TkWmDeadWindow(
if (window && !Tk_IsEmbedded(winPtr) ) {
[[window parentWindow] removeChildWindow:window];
+ [window setExcludedFromWindowsMenu:YES];
[window close];
TkMacOSXUnregisterMacWindow(window);
if (winPtr->window) {