diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-12 14:52:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-12 14:52:53 (GMT) |
commit | 304456c27894c1a53b435c99aa10036f018204fd (patch) | |
tree | 45e7f9a1ef59394684c49f4d6506afde0146da6c /macosx/tkMacOSXWindowEvent.c | |
parent | e179c5f50a60f4d97b9963fe6ad71e2376886ac4 (diff) | |
parent | bc52b8485678245b43a48cec01756c05b11fc17d (diff) | |
download | tk-304456c27894c1a53b435c99aa10036f018204fd.zip tk-304456c27894c1a53b435c99aa10036f018204fd.tar.gz tk-304456c27894c1a53b435c99aa10036f018204fd.tar.bz2 |
Merge 8.6
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index dc58740..d8986c0 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); } } @@ -336,7 +337,7 @@ static void RefocusGrabWindow(void *data) { continue; } if (winPtr->wmInfoPtr->hints.initial_state == WithdrawnState) { - [win orderOut:nil]; + [win orderOut:NSApp]; } if (winPtr->dispPtr->grabWinPtr == winPtr) { Tcl_DoWhenIdle(RefocusGrabWindow, winPtr); |