From e15aaa70212762fb106444ba2de19c4f3e0d4efd Mon Sep 17 00:00:00 2001 From: georgeps Date: Thu, 29 Jul 2004 21:48:07 +0000 Subject: Applied a fix from the core-8-4-branch so that unmapped windows don't queue events. --- generic/tkEvent.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v0.12