summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/tkMacOSXSubwindows.c1
-rw-r--r--macosx/tkMacOSXWm.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index bd0f60a..caebd7b 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -305,6 +305,7 @@ XUnmapWindow(
if (!Tk_IsEmbedded(winPtr) &&
winPtr->wmInfoPtr->hints.initial_state!=IconicState) {
[win setExcludedFromWindowsMenu:YES];
+ [win orderOut:NSApp];
if ([win isKeyWindow]) {
/*
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 26617a4..5a39948 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -6464,7 +6464,6 @@ TkpWmSetState(
}
if (state == WithdrawnState) {
Tk_UnmapWindow((Tk_Window)winPtr);
- [macWin orderOut:NSApp];
} else if (state == IconicState) {
/*