summaryrefslogtreecommitdiff
path: root/XIproto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-10-17 12:38:38 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-10-17 12:38:38 +0930
commit6a0ffc2f461bd41a223732551e0ea1f05c293028 (patch)
tree0eb069cd071ad505f88ac4b7be6dcce628a5c4c2 /XIproto.h
parent0e9f8468ba15a55ddba7fb8c263a80091e9decde (diff)
xDeviceInfo: add "attached" field (replace previous padding).
If use is set to IsXExtensionPointer/Keyboard/Devices, attached indicates the device ID of the master device it is attached to. If the device is floating, attached is set to IsFloating.
Diffstat (limited to 'XIproto.h')
-rw-r--r--XIproto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/XIproto.h b/XIproto.h
index eb86def..3e233d3 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -254,8 +254,8 @@ typedef struct _xDeviceInfo {
CARD32 type B32;
CARD8 id;
CARD8 num_classes;
- CARD8 use;
- CARD8 pad1;
+ CARD8 use; /* IsXPointer | IsXKeyboard | IsXExtension... */
+ CARD8 attached; /* id of master dev (if IsXExtension..) */
} xDeviceInfo;
typedef struct _xKeyInfo *xKeyInfoPtr;