summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-02-26 13:19:54 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-02-26 13:51:19 +1030
commitce9fb2f8c4610016e49321018fc9b24729380afc (patch)
tree80d280a8e7548d77af97539bbe7aaaaa0d171dc3
parentd61f481a4455dd2a94674d2b7b26429cf9dcece3 (diff)
Xi: MDs return the paired device's ID in attached field of ListInputDevices.
-rw-r--r--Xi/listdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/listdev.c b/Xi/listdev.c
index 50f34e46c..3fb0ab314 100644
--- a/Xi/listdev.c
+++ b/Xi/listdev.c
@@ -188,6 +188,8 @@ CopySwapDevice(ClientPtr client, DeviceIntPtr d, int num_classes,
dev->use = IsXExtensionDevice;
if (!d->isMaster)
dev->attached = (d->u.master) ? d->u.master->id : IsFloating;
+ else
+ dev->attached = GetPairedDevice(d)->id;
if (client->swapped) {
swapl(&dev->type, n); /* macro - braces are required */