summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-10 20:35:18 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-10 20:35:18 (GMT)
commitd93c347a95321018cd5bee51bfd341efed6dee81 (patch)
tree06adc21d1bee77be456c8ddc45167e1d9f826b0e
parent85410be606630673a7e3dd0f085a52a448992b61 (diff)
parent8d65c105a16c35b35a3832d815661e923c43bd80 (diff)
downloadtk-bug_d4fb4e80d2.zip
tk-bug_d4fb4e80d2.tar.gz
tk-bug_d4fb4e80d2.tar.bz2
Merge core-8-6-branch so that new test imgPhoto-4.74 lands in the present bugfix branch as wellbug_d4fb4e80d2
-rw-r--r--generic/tkBind.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index d3fdc96..567c51f 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -1260,6 +1260,16 @@ Tk_BindEvent(
}
}
+ /*
+ * Ignore event types which are not in flagArray and all zeroes there.
+ * Most notably, NoExpose events can fill the ring buffer and disturb
+ * (thus masking out) event sequences of interest.
+ */
+
+ if ((eventPtr->type >= TK_LASTEVENT) || !flagArray[eventPtr->type]) {
+ return;
+ }
+
dispPtr = ((TkWindow *) tkwin)->dispPtr;
bindInfoPtr = winPtr->mainPtr->bindInfo;