summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-09-01 16:42:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-01 16:42:38 +1000
commit693d9a43f16d4ffd085099b532a10467aa095c17 (patch)
tree7cac18096dfbfd7050ed0ddd4c1b61c9f0203b01 /src
parenteb9a2d63487641faa97d88cef3fa1c892a8f342f (diff)
Initialize send_event for cookie events. (#23609)
X.Org Bug 23609 <http://bugs.freedesktop.org/show_bug.cgi?id=23609>
Diffstat (limited to 'src')
-rw-r--r--src/XExtInt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 26cc6e4..7f7e9cc 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1292,6 +1292,7 @@ wireToDeviceEvent(xXIDeviceEvent *in, XGenericEventCookie* cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->deviceid = in->deviceid;
out->sourceid = in->sourceid;
@@ -1489,6 +1490,7 @@ wireToDeviceChangedEvent(xXIDeviceChangedEvent *in, XGenericEventCookie *cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->deviceid = in->deviceid;
out->sourceid = in->sourceid;
@@ -1518,6 +1520,7 @@ wireToHierarchyChangedEvent(xXIHierarchyEvent *in, XGenericEventCookie *cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->flags = in->flags;
out->num_info = in->num_info;
@@ -1558,6 +1561,7 @@ wireToRawEvent(xXIRawEvent *in, XGenericEventCookie *cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->detail = in->detail;
out->deviceid = in->deviceid;
@@ -1600,6 +1604,7 @@ wireToEnterLeave(xXIEnterEvent *in, XGenericEventCookie *cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->detail = in->detail;
out->deviceid = in->deviceid;
@@ -1640,6 +1645,7 @@ wireToPropertyEvent(xXIPropertyEvent *in, XGenericEventCookie *cookie)
out->type = in->type;
out->extension = in->extension;
out->evtype = in->evtype;
+ out->send_event = ((in->type & 0x80) != 0);
out->time = in->time;
out->property = in->property;
out->what = in->what;