summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorgeorgeps <georgeps>2004-07-29 21:48:07 (GMT)
committergeorgeps <georgeps>2004-07-29 21:48:07 (GMT)
commite15aaa70212762fb106444ba2de19c4f3e0d4efd (patch)
tree11b33de3be6d6afaaaeb6a952b60ab0f70d49b96 /generic
parentbea5263502ccdb979e3792cd7c809a017fb8bc91 (diff)
downloadtk-e15aaa70212762fb106444ba2de19c4f3e0d4efd.zip
tk-e15aaa70212762fb106444ba2de19c4f3e0d4efd.tar.gz
tk-e15aaa70212762fb106444ba2de19c4f3e0d4efd.tar.bz2
Applied a fix from the core-8-4-branch so that unmapped windows don't queue events.
Diffstat (limited to 'generic')
-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);