diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-26 13:19:54 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-26 13:51:19 +1030 |
commit | ce9fb2f8c4610016e49321018fc9b24729380afc (patch) | |
tree | 80d280a8e7548d77af97539bbe7aaaaa0d171dc3 | |
parent | d61f481a4455dd2a94674d2b7b26429cf9dcece3 (diff) |
Xi: MDs return the paired device's ID in attached field of ListInputDevices.
-rw-r--r-- | Xi/listdev.c | 2 |
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 */ |