summaryrefslogtreecommitdiffstats
path: root/xlib/X11/X.h
diff options
context:
space:
mode:
authorstanton <stanton>1999-04-16 01:51:06 (GMT)
committerstanton <stanton>1999-04-16 01:51:06 (GMT)
commit03656f44f81469f459031fa3a4a7b09c8bc77712 (patch)
tree31378e81bd58f8c726fc552d6b30cbf3ca07497b /xlib/X11/X.h
parent404fc236f34304df53b7e44bc7971d786b87d453 (diff)
downloadtk-03656f44f81469f459031fa3a4a7b09c8bc77712.zip
tk-03656f44f81469f459031fa3a4a7b09c8bc77712.tar.gz
tk-03656f44f81469f459031fa3a4a7b09c8bc77712.tar.bz2
* Merged 8.1 branch into the main trunk
Diffstat (limited to 'xlib/X11/X.h')
-rw-r--r--xlib/X11/X.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlib/X11/X.h b/xlib/X11/X.h
index 55a3133..a7f6566 100644
--- a/xlib/X11/X.h
+++ b/xlib/X11/X.h
@@ -59,7 +59,11 @@ typedef unsigned long VisualID;
typedef unsigned long Time;
-typedef unsigned short KeyCode;
+typedef unsigned long KeyCode; /* In order to use IME, the Macintosh needs
+ * to pack 3 bytes into the keyCode field in
+ * the XEvent. In the real X.h, a KeyCode is
+ * defined as a short, which wouldn't be big
+ * enough. */
/*****************************************************************
* RESERVED RESOURCE AND CONSTANT DEFINITIONS