summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2004-07-21 04:27:54 (GMT)
committerwolfsuit <wolfsuit>2004-07-21 04:27:54 (GMT)
commit21807d88352367f4e822a52221e96ac1b7a9d48c (patch)
tree05fb1c4439014024d7552233f1ffcabe3741eae2 /generic
parenta1273c1a146be8da4e9a6fb5c3fde32d9c5971a5 (diff)
downloadtk-21807d88352367f4e822a52221e96ac1b7a9d48c.zip
tk-21807d88352367f4e822a52221e96ac1b7a9d48c.tar.gz
tk-21807d88352367f4e822a52221e96ac1b7a9d48c.tar.bz2
Don't queue events for unmapped children.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkEvent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c
index a1f9a9f..ec5a23b 100644
--- a/generic/tkEvent.c
+++ b/generic/tkEvent.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: tkEvent.c,v 1.17.2.3 2004/07/21 03:07:06 hobbs Exp $
+ * RCS: @(#) $Id: tkEvent.c,v 1.17.2.4 2004/07/21 04:27:55 wolfsuit Exp $
*/
#include "tkPort.h"
@@ -1373,6 +1373,10 @@ TkQueueEventForAllChildren(winPtr, eventPtr)
{
TkWindow *childPtr;
+ if (!Tk_IsMapped(winPtr)) {
+ return;
+ }
+
eventPtr->xany.window = winPtr->window;
Tk_QueueWindowEvent(eventPtr, TCL_QUEUE_TAIL);