summaryrefslogtreecommitdiffstats
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
parenta1273c1a146be8da4e9a6fb5c3fde32d9c5971a5 (diff)
downloadtk-21807d88352367f4e822a52221e96ac1b7a9d48c.zip
tk-21807d88352367f4e822a52221e96ac1b7a9d48c.tar.gz
tk-21807d88352367f4e822a52221e96ac1b7a9d48c.tar.bz2
Don't queue events for unmapped children.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tkEvent.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83d4ade..bbd51e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-20 Jim Ingham <jingham@apple.com>
+
+ * generic/tkEvent.c (TkQueueEventForAllChildren): Don't queue
+ events for unmapped windows.
+
2004-07-20 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tkEvent.c (Tk_HandleEvent): ensure IC focus is set after
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);