summaryrefslogtreecommitdiffstats
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)
commite03776c4c7a38e364a5ce642940e89c601b19ec2 (patch)
tree8876b87972c68fc2e9c7c342fb64527ced965abc
parent4c1308ad477522bc98eea3a93e4085abba195a56 (diff)
downloadtk-e03776c4c7a38e364a5ce642940e89c601b19ec2.zip
tk-e03776c4c7a38e364a5ce642940e89c601b19ec2.tar.gz
tk-e03776c4c7a38e364a5ce642940e89c601b19ec2.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 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) {