summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2021-11-09 20:30:02 (GMT)
committerculler <culler>2021-11-09 20:30:02 (GMT)
commit7cc3f03be6db944de078dee41314ebb5aa841b0e (patch)
treee65c9ebef7a5218a0c8db8b94cfb5fad8ce50eff
parent9c88848c95f3fa2fc84dca2a6e29741a093d256b (diff)
downloadtk-7cc3f03be6db944de078dee41314ebb5aa841b0e.zip
tk-7cc3f03be6db944de078dee41314ebb5aa841b0e.tar.gz
tk-7cc3f03be6db944de078dee41314ebb5aa841b0e.tar.bz2
Fix [8aebca6f26]: Aqua Tk does not handle the yellow minimize button correctly.
-rw-r--r--macosx/tkMacOSXWindowEvent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index e8de467..8fd5a61 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -188,6 +188,7 @@ extern NSString *NSWindowDidOrderOffScreenNotification;
TkWindow *winPtr = TkMacOSXGetTkWindow(w);
if (winPtr) {
+ winPtr->wmInfoPtr->hints.initial_state = IconicState;
Tk_UnmapWindow((Tk_Window)winPtr);
}
}