summaryrefslogtreecommitdiffstats
path: root/generic/tkEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkEvent.c')
-rw-r--r--generic/tkEvent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c
index b90b3fd..ad9e29a 100644
--- a/generic/tkEvent.c
+++ b/generic/tkEvent.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkEvent.c,v 1.23 2004/07/21 03:10:06 hobbs Exp $
+ * RCS: @(#) $Id: tkEvent.c,v 1.24 2004/07/29 21:48:07 georgeps Exp $
*/
#include "tkPort.h"
@@ -1726,6 +1726,10 @@ TkQueueEventForAllChildren(winPtr, eventPtr)
{
TkWindow *childPtr;
+ if (!Tk_IsMapped(winPtr)) {
+ return;
+ }
+
eventPtr->xany.window = winPtr->window;
Tk_QueueWindowEvent(eventPtr, TCL_QUEUE_TAIL);