update Wed Feb 10 06:37:00 PST 2010
[pkgsrc.git] / x11 / tk83 / patches / patch-af
1 $NetBSD: patch-af,v 1.2 2009/12/17 18:23:49 abs Exp $
2
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.
7
8 A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker:
9
10 http://sourceforge.net/tracker/index.php?func=detail&aid=2010422&group_id=12997&atid=112997
11
12 --- generic/tkBind.c.orig       2001-10-13 01:25:10.000000000 +0000
13 +++ generic/tkBind.c
14 @@ -575,6 +575,9 @@ static int flagArray[TK_LASTEVENT] = {
15     /* ColormapNotify */                COLORMAP,
16     /* ClientMessage */         0,
17     /* MappingNotify */         0,
18 +#ifdef GenericEvent
19 +   /* GenericEvent */          0, /* Introduced in xproto-7.0.13 */
20 +#endif
21     /* VirtualEvent */          VIRTUAL,
22     /* Activate */              ACTIVATE,           
23     /* Deactivate */            ACTIVATE,