diff options
author | jenglish <jenglish@flightlab.com> | 2008-08-06 16:54:46 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2008-08-06 16:54:46 (GMT) |
commit | bc6df053da15ca2f4f4f8de80e02f8bcd7b5bbc3 (patch) | |
tree | 327f9f530868ccfb761511ee977ffafbc339f369 /generic/tk.h | |
parent | cf0a71b6b6ae366ed2c55edf4cd102fae9fba1fe (diff) | |
download | tk-bc6df053da15ca2f4f4f8de80e02f8bcd7b5bbc3.zip tk-bc6df053da15ca2f4f4f8de80e02f8bcd7b5bbc3.tar.gz tk-bc6df053da15ca2f4f4f8de80e02f8bcd7b5bbc3.tar.bz2 |
Fix for [Bug 2010422]: account for X11 changing constant LASTEvent.
Diffstat (limited to 'generic/tk.h')
-rw-r--r-- | generic/tk.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/generic/tk.h b/generic/tk.h index 1f1027c..1e90659 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tk.h,v 1.74.2.22 2008/04/07 19:17:54 dgp Exp $ + * RCS: @(#) $Id: tk.h,v 1.74.2.23 2008/08/06 16:54:48 jenglish Exp $ */ #ifndef _TK @@ -635,18 +635,16 @@ typedef struct Tk_GeomMgr { * *--------------------------------------------------------------------------- */ -#define VirtualEvent (LASTEvent) -#define ActivateNotify (LASTEvent + 1) -#define DeactivateNotify (LASTEvent + 2) -#define MouseWheelEvent (LASTEvent + 3) -#define TK_LASTEVENT (LASTEvent + 4) -#define MouseWheelMask (1L << 28) +#define VirtualEvent (MappingNotify + 1) +#define ActivateNotify (MappingNotify + 2) +#define DeactivateNotify (MappingNotify + 3) +#define MouseWheelEvent (MappingNotify + 4) +#define TK_LASTEVENT (MappingNotify + 5) +#define MouseWheelMask (1L << 28) #define ActivateMask (1L << 29) #define VirtualEventMask (1L << 30) -#define TK_LASTEVENT (LASTEvent + 4) - /* * A virtual event shares most of its fields with the XKeyEvent and |