summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-02-14 08:48:07 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-02-23 15:03:18 +1000
commit4db3db2b38d8eb9024170633d3bf7c5050272dd0 (patch)
tree66fbd64acddec0ccccad9fad1fe380079bbcaee7 /src
parentd79a9b174a79e89ca2507a61f2e12af25102313f (diff)
Mark sourceid in Raw events as bug and force to 0..
The protocol does not provide a source ID for raw events, so this value is always 0. It shouldn't really be there, but the past is so hard to change. Reported-by: Mark Dokter <dokter@icg.tugraz.at> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/XExtInt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index f96e3ff..5a1bca6 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1627,6 +1627,7 @@ wireToRawEvent(xXIRawEvent *in, XGenericEventCookie *cookie)
out->time = in->time;
out->detail = in->detail;
out->deviceid = in->deviceid;
+ out->sourceid = 0; /* https://bugs.freedesktop.org/show_bug.cgi?id=34240 */
out->flags = in->flags;
out->valuators.mask_len = in->valuators_len * 4;