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 | b1e127233cfa6b7589c0eb9422a358c4ebf37061 (patch) | |
tree | 327f9f530868ccfb761511ee977ffafbc339f369 /generic/tk.h | |
parent | e0b7e484ff8e6571076438049a834aa5b9e25cba (diff) | |
download | tk-b1e127233cfa6b7589c0eb9422a358c4ebf37061.zip tk-b1e127233cfa6b7589c0eb9422a358c4ebf37061.tar.gz tk-b1e127233cfa6b7589c0eb9422a358c4ebf37061.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 |