diff options
author | culler <culler> | 2021-04-28 15:56:54 (GMT) |
---|---|---|
committer | culler <culler> | 2021-04-28 15:56:54 (GMT) |
commit | 5b49b83abd433f95230651b236e7882871f1b995 (patch) | |
tree | 30cef07b1f3ad169234aad3f1b9193770257ba62 /macosx/tkMacOSXWm.c | |
parent | 2ce4830f8b177a13e360b787bba7b2b73adb8183 (diff) | |
parent | 4d1967bac73880c706d9c1c5b11388e97a695faa (diff) | |
download | tk-5b49b83abd433f95230651b236e7882871f1b995.zip tk-5b49b83abd433f95230651b236e7882871f1b995.tar.gz tk-5b49b83abd433f95230651b236e7882871f1b995.tar.bz2 |
Merge CALayer-86
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 7a40135..164b00c 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -6433,6 +6433,12 @@ TkpWmSetState( macWin = TkMacOSXGetNSWindowForDrawable(winPtr->window); + /* + * Make sure windows are updated before the state change. + */ + + while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)) {}; + if (state == WithdrawnState) { Tk_UnmapWindow((Tk_Window)winPtr); } else if (state == IconicState) { @@ -6453,8 +6459,9 @@ TkpWmSetState( [macWin orderFront:NSApp]; TkMacOSXZoomToplevel(macWin, state == NormalState ? inZoomIn : inZoomOut); } + /* - * Make sure windows are updated after the state change. + * Make sure windows are updated after the state change too. */ while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)){} |