diff options
author | georgeps <georgeps@noemail.net> | 2004-07-29 21:48:06 (GMT) |
---|---|---|
committer | georgeps <georgeps@noemail.net> | 2004-07-29 21:48:06 (GMT) |
commit | f857a9bcedaa343353cf1bac781b28ffbf13c808 (patch) | |
tree | 11b33de3be6d6afaaaeb6a952b60ab0f70d49b96 /generic/tkEvent.c | |
parent | 674c9394848542c3d0d635ae9a4aace1a32bc059 (diff) | |
download | tk-f857a9bcedaa343353cf1bac781b28ffbf13c808.zip tk-f857a9bcedaa343353cf1bac781b28ffbf13c808.tar.gz tk-f857a9bcedaa343353cf1bac781b28ffbf13c808.tar.bz2 |
Applied a fix from the core-8-4-branch so that unmapped windows don't queue events.
FossilOrigin-Name: 92b9ba26810daf1051a2ec1bed92428667e65c7a
Diffstat (limited to 'generic/tkEvent.c')
-rw-r--r-- | generic/tkEvent.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |