pkgsrc/x11/tk/patches/patch-ae
dsainty 50796f82da Tk uses X event numbers to index an "event" 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 defined array broken for all of Tk's internal events.

The easy fix is to just add in the missing event into the hard-coded array.

This patch was reported here: http://bugs.gentoo.org/show_bug.cgi?id=225999

A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker.  I'm
punting that Tk will have been updated with the fix before X.h grows another
event.

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

Bump PKGREVISION.
2008-08-06 04:09:12 +00:00

23 lines
941 B
Text

$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,