diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index eed6637..f96e3ff 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -1347,6 +1347,7 @@ wireToDeviceEvent(xXIDeviceEvent *in, XGenericEventCookie* cookie) cookie->data = ptr_lib = malloc(len); out = next_block(&ptr_lib, sizeof(XIDeviceEvent)); + out->display = cookie->display; out->type = in->type; out->extension = in->extension; out->evtype = in->evtype; @@ -1546,6 +1547,7 @@ wireToDeviceChangedEvent(xXIDeviceChangedEvent *in, XGenericEventCookie *cookie) cookie->data = out = malloc(sizeof(XIDeviceChangedEvent) + len); out->type = in->type; + out->display = cookie->display; out->extension = in->extension; out->evtype = in->evtype; out->send_event = ((in->type & 0x80) != 0); @@ -1575,6 +1577,7 @@ wireToHierarchyChangedEvent(xXIHierarchyEvent *in, XGenericEventCookie *cookie) cookie->data = out = malloc(sizeof(XIHierarchyEvent) + in->num_info * sizeof(XIHierarchyInfo));; out->info = (XIHierarchyInfo*)&out[1]; + out->display = cookie->display; out->type = in->type; out->extension = in->extension; out->evtype = in->evtype; @@ -1617,6 +1620,7 @@ wireToRawEvent(xXIRawEvent *in, XGenericEventCookie *cookie) out = next_block(&ptr, sizeof(XIRawEvent)); out->type = in->type; + out->display = cookie->display; out->extension = in->extension; out->evtype = in->evtype; out->send_event = ((in->type & 0x80) != 0); @@ -1660,6 +1664,7 @@ wireToEnterLeave(xXIEnterEvent *in, XGenericEventCookie *cookie) out->buttons.mask = (unsigned char*)&out[1]; out->type = in->type; + out->display = cookie->display; out->extension = in->extension; out->evtype = in->evtype; out->send_event = ((in->type & 0x80) != 0); |