summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2008-08-05 20:31:07 (GMT)
committerjenglish <jenglish@flightlab.com>2008-08-05 20:31:07 (GMT)
commitf599302965961fcb2ea0ab5c179fa3bb3a2d860f (patch)
tree025f32b1c924bcc225cc2dae6c7aef2b0339eab5 /generic/tk.h
parente789fde4f39df79644897b01974f22db4adbeeb7 (diff)
downloadtk-f599302965961fcb2ea0ab5c179fa3bb3a2d860f.zip
tk-f599302965961fcb2ea0ab5c179fa3bb3a2d860f.tar.gz
tk-f599302965961fcb2ea0ab5c179fa3bb3a2d860f.tar.bz2
Fix for [Bug 2010422] "no event type or button # or keysym
while executing "bind Listbox <MouseWheel> [...]". This allows Tk to compile and run against newer versions of libX11 where the protocol constant LastEvent has changed.
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/generic/tk.h b/generic/tk.h
index f9d734e..00424c4 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.113 2008/07/31 04:22:09 dgp Exp $
+ * RCS: @(#) $Id: tk.h,v 1.114 2008/08/05 20:31:08 jenglish Exp $
*/
#ifndef _TK
@@ -627,17 +627,15 @@ 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 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