summaryrefslogtreecommitdiffstats
path: root/generic/tkEvent.c
diff options
context:
space:
mode:
authorgeorgeps <georgeps@noemail.net>2004-07-29 21:48:06 (GMT)
committergeorgeps <georgeps@noemail.net>2004-07-29 21:48:06 (GMT)
commitf857a9bcedaa343353cf1bac781b28ffbf13c808 (patch)
tree11b33de3be6d6afaaaeb6a952b60ab0f70d49b96 /generic/tkEvent.c
parent674c9394848542c3d0d635ae9a4aace1a32bc059 (diff)
downloadtk-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.c6
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);