summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/X11/extensions/XInput2.h1
-rw-r--r--src/XExtInt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index 8221055..b9207f0 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -230,6 +230,7 @@ typedef struct {
int detail;
int deviceid;
int sourceid;
+ int eventtype;
XIValuatorState *valuators;
double *raw_values;
} XIRawDeviceEvent;
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 53edf97..dabe80d 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -995,6 +995,7 @@ wireToRawEvent(xXIRawDeviceEvent *in, XIRawDeviceEvent *out)
out->time = in->time;
out->detail = in->detail;
out->deviceid = in->deviceid;
+ out->eventtype = in->eventtype;
out->valuators = malloc(sizeof(XIValuatorState) + in->valuators_len * 4);
out->valuators->mask_len = in->valuators_len * 4;