summaryrefslogtreecommitdiff
path: root/Xi/listdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-10-18 12:21:07 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-10-19 11:28:50 +0930
commit6dcde0e9c1d068d9fc4a772d29d1d4c6cc57aeb9 (patch)
treedc752653a608d2a6da6652b361bb180dcb1b23a6 /Xi/listdev.c
parentcfcc6e14b9a15f7979ba0df9c105cf563bef98fa (diff)
Xi: set master device's id in ListDevices Reply.
Diffstat (limited to 'Xi/listdev.c')
-rw-r--r--Xi/listdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/listdev.c b/Xi/listdev.c
index 5b5d26e1b..8753b292c 100644
--- a/Xi/listdev.c
+++ b/Xi/listdev.c
@@ -187,6 +187,9 @@ CopySwapDevice(ClientPtr client, DeviceIntPtr d, int num_classes,
dev->use = IsXExtensionPointer;
else
dev->use = IsXExtensionDevice;
+ if (!d->isMaster)
+ dev->attached = (d->u.master) ? d->u.master->id : IsFloating;
+
if (client->swapped) {
swapl(&dev->type, n); /* macro - braces are required */
}