summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);