summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-27 15:29:22 (GMT)
committerchengyemao <chengyemao>2005-01-27 15:29:22 (GMT)
commit13051622cd55ab9575bd7730c66f07bbca072e14 (patch)
treeb167d40db33b52abd8cf26fa3b0c6d4ed016f7c1 /win/tkWinEmbed.c
parenta3aadf2949222976028f04dc7ff50aebfb8aa1ee (diff)
downloadtk-13051622cd55ab9575bd7730c66f07bbca072e14.zip
tk-13051622cd55ab9575bd7730c66f07bbca072e14.tar.gz
tk-13051622cd55ab9575bd7730c66f07bbca072e14.tar.bz2
Flushed idle events before mapping an embedded window
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c
index 3c4c31e..40cbd3a 100644
--- a/win/tkWinEmbed.c
+++ b/win/tkWinEmbed.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinEmbed.c,v 1.27 2005/01/18 15:19:28 chengyemao Exp $
+ * RCS: @(#) $Id: tkWinEmbed.c,v 1.28 2005/01/27 15:29:22 chengyemao Exp $
*/
#include "tkWinInt.h"
@@ -168,6 +168,7 @@ void Tk_MapEmbeddedWindow(winPtr)
if(state < 0 || state > 3) {
state = NormalState;
}
+ while(Tcl_DoOneEvent(TCL_IDLE_EVENTS));
TkpWmSetState(winPtr, state);
TkWmMapWindow(winPtr);
}