summaryrefslogtreecommitdiff
path: root/XIproto.h
diff options
context:
space:
mode:
authorBenjamin Close <Benjamin.Close@clearchain.com>2009-04-22 13:10:50 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-22 12:45:13 +1000
commit6d28cb22ada7a1abb6ab11863c82c9834d1a4b00 (patch)
tree3d3d08efb2ec8908f7baf59bfb1aa4489b7c2d6e /XIproto.h
parent589dc6ffa509c1c7da2d94dc89b2246c3dfdc81d (diff)
Define the Cursor datasize correctly
On 64 bit machines, without Cursor defined Xlib would allocate 64 bits rather than 32 to any structs using Cursor. This led to data not correctly being available on the wire hence the Xserver would do strange things. We hence define Cursor to what it should be and make sure we undefine it after we've finished to users of XIproto.h aren't affected Fix-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XIproto.h')
-rw-r--r--XIproto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/XIproto.h b/XIproto.h
index 2561eeb..e00ab61 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -56,6 +56,7 @@ SOFTWARE.
#define KeyCode CARD8
#define Mask CARD32
#define Atom CARD32
+#define Cursor CARD32
/*********************************************************
*
@@ -1750,5 +1751,6 @@ typedef struct
#undef KeyCode
#undef Mask
#undef Atom
+#undef Cursor
#endif