summaryrefslogtreecommitdiff
path: root/XI2proto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-29 10:09:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-09-02 14:49:39 +1000
commitaf1fb609beece899188469a81ac9d8c5e07bfa4a (patch)
treec4abad367a433dd1f5f703231cbbc0a15ec3dc48 /XI2proto.h
parent1e63d01d041108db6fe5be32d033e80419a6ab05 (diff)
Add sourceid to RawEvents (#34420)
RawEvents in XI2 do not provide the source ID. The libXi headers however do and it is currently always 0. Given that the sourceid may be useful for some clients, send it down the wire. This has no effect on the wire size of the struct, we can re-use a pad byte here. X.Org Bug 34420 <http://bugs.freedesktop.org/show_bug.cgi?id=34420> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'XI2proto.h')
-rw-r--r--XI2proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 84574a5..8977e87 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -902,7 +902,7 @@ typedef struct
uint16_t deviceid;
Time time;
uint32_t detail;
- uint16_t pad0;
+ uint16_t sourceid; /**< The source device (XI 2.1) */
uint16_t valuators_len; /**< Length of trailing valuator
mask in 4 byte units */
uint32_t flags; /**< ::XIKeyRepeat */