From 79b1ee174bb08722198e6d00c9d1a1e9e9352b8a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 8 Jul 2009 15:42:58 +1000 Subject: Switch to new XIEvent structures - no need for pointers anymore. This removes all those pointers from event structures that were just there due to the pre-cookie struct size limit. Pointers remaining are only those that are of variable length (e.g. masks and valuator states). Signed-off-by: Peter Hutterer --- include/X11/extensions/XInput2.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index 2cc3744..e4e2e34 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -228,10 +228,10 @@ typedef struct { double root_y; double event_x; double event_y; - XIButtonState *buttons; - XIValuatorState *valuators; - XIModifierState *mods; - XIGroupState *group; + XIButtonState buttons; + XIValuatorState valuators; + XIModifierState mods; + XIGroupState group; } XIDeviceEvent; typedef struct { @@ -246,7 +246,7 @@ typedef struct { int deviceid; int sourceid; int eventtype; - XIValuatorState *valuators; + XIValuatorState valuators; double *raw_values; } XIRawEvent; @@ -271,9 +271,9 @@ typedef struct { int mode; Bool focus; Bool same_screen; - XIButtonState *buttons; - XIModifierState *mods; - XIGroupState *group; + XIButtonState buttons; + XIModifierState mods; + XIGroupState group; } XIEnterEvent; typedef XIEnterEvent XILeaveEvent; -- cgit v1.2.3