diff options
-rw-r--r-- | include/X11/extensions/XInput2.h | 4 | ||||
-rw-r--r-- | src/XIQueryDevice.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index da80fa3..68b874c 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -78,11 +78,13 @@ typedef struct typedef struct { int type; + int sourceid; } XIAnyClassInfo; typedef struct { int type; + int sourceid; int num_buttons; Atom *buttons; } XIButtonClassInfo; @@ -90,6 +92,7 @@ typedef struct typedef struct { int type; + int sourceid; int num_keycodes; int *keycodes; } XIKeyClassInfo; @@ -97,6 +100,7 @@ typedef struct typedef struct { int type; + int sourceid; int number; Atom name; double min; diff --git a/src/XIQueryDevice.c b/src/XIQueryDevice.c index ce8ddd1..d8de8a6 100644 --- a/src/XIQueryDevice.c +++ b/src/XIQueryDevice.c @@ -86,6 +86,7 @@ copy_classes(XIDeviceInfo* to, xXIAnyInfo* from, int nclasses) to->classes[i] = any_lib; any_lib->type = any_wire->type; + any_lib->sourceid = any_wire->sourceid; switch(any_wire->type) { case XIButtonClass: |