From daaa68a2ed8d404a1c6685d4a6e15db3ed4ac9b4 Mon Sep 17 00:00:00 2001 From: chengyemao Date: Thu, 27 Jan 2005 15:29:22 +0000 Subject: Flushed idle events before mapping an embedded window --- win/tkWinEmbed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v0.12