From 21807d88352367f4e822a52221e96ac1b7a9d48c Mon Sep 17 00:00:00 2001 From: wolfsuit Date: Wed, 21 Jul 2004 04:27:54 +0000 Subject: Don't queue events for unmapped children. --- ChangeLog | 5 +++++ generic/tkEvent.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 83d4ade..bbd51e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-20 Jim Ingham + + * generic/tkEvent.c (TkQueueEventForAllChildren): Don't queue + events for unmapped windows. + 2004-07-20 Jeff Hobbs * 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); -- cgit v0.12