From 6a0ffc2f461bd41a223732551e0ea1f05c293028 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 17 Oct 2007 12:38:38 +0930 Subject: [PATCH] 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. --- XI.h | 1 + XIproto.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/XI.h b/XI.h index 921ea8d..36aa7d6 100644 --- a/XI.h +++ b/XI.h @@ -199,6 +199,7 @@ SOFTWARE. #define XKEYBOARD 1 #define UseXKeyboard 0xFF +#define IsFloating (1 << 7) #define IsXPointer 0 #define IsXKeyboard 1 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; -- 2.7.4