$NetBSD: patch-ae,v 1.4 2008/08/06 04:09:12 dsainty Exp $

Tk uses X event numbers to index this array, as well as adding a few of its
own, starting with "VirtualEvent" (Which is correctly set to LASTEvent,
defined in include/X11/X.h).  In xproto-7.0.13, a new event "GenericEvent" was
added - making the array broken for all of Tk's internal events.

A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker:

http://sourceforge.net/tracker/index.php?func=detail&aid=2010422&group_id=12997&atid=112997

--- generic/tkBind.c.orig	2008-08-06 15:19:07.000000000 +1200
+++ generic/tkBind.c	2008-08-06 15:21:30.000000000 +1200
@@ -586,6 +586,9 @@
    /* ColormapNotify */		COLORMAP,
    /* ClientMessage */		0,
    /* MappingNotify */		0,
+#ifdef GenericEvent
+   /* GenericEvent */		0, /* Introduced in xproto-7.0.13 */
+#endif 
    /* VirtualEvent */		VIRTUAL,
    /* Activate */		ACTIVATE,	    
    /* Deactivate */		ACTIVATE,
