From 9d92265081830b700926b4a7b73975dd65217551 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 9 Jul 2009 13:46:52 +1000 Subject: Remove padding from XIEvent. The padding was originally to force the same size as the XEvent struct. This only works on 32 bit however, the 64-bit XEvent struct is larger. Let's just ignore the padding, there's no point to it anyway, all the Xlib functions require XEvents anyway. Signed-off-by: Peter Hutterer --- include/X11/extensions/XInput2.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index e4e2e34..f5a318c 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -152,7 +152,6 @@ typedef struct /** * Generic XI2 event. All XI2 events have the same header. - * Note: this event is padded to be the same size as libX11's XEvent. */ typedef struct { int type; /* GenericEvent */ @@ -162,7 +161,6 @@ typedef struct { int extension; /* XI extension offset */ int evtype; Time time; - char pad[68]; /* force same size as XEvent */ } XIEvent; -- cgit v1.2.3