1 $NetBSD: patch-af,v 1.2 2009/12/17 18:23:49 abs Exp $
3 Tk uses X event numbers to index this array, as well as adding a few of its
4 own, starting with "VirtualEvent" (Which is correctly set to LASTEvent,
5 defined in include/X11/X.h). In xproto-7.0.13, a new event "GenericEvent" was
6 added - making the array broken for all of Tk's internal events.
8 A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker:
10 http://sourceforge.net/tracker/index.php?func=detail&aid=2010422&group_id=12997&atid=112997
12 --- generic/tkBind.c.orig 2001-10-13 01:25:10.000000000 +0000
14 @@ -575,6 +575,9 @@ static int flagArray[TK_LASTEVENT] = {
15 /* ColormapNotify */ COLORMAP,
16 /* ClientMessage */ 0,
17 /* MappingNotify */ 0,
19 + /* GenericEvent */ 0, /* Introduced in xproto-7.0.13 */
21 /* VirtualEvent */ VIRTUAL,
22 /* Activate */ ACTIVATE,
23 /* Deactivate */ ACTIVATE,