diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-18 12:21:07 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-19 11:28:50 +0930 |
commit | 6dcde0e9c1d068d9fc4a772d29d1d4c6cc57aeb9 (patch) | |
tree | dc752653a608d2a6da6652b361bb180dcb1b23a6 /Xi/listdev.c | |
parent | cfcc6e14b9a15f7979ba0df9c105cf563bef98fa (diff) |
Xi: set master device's id in ListDevices Reply.
Diffstat (limited to 'Xi/listdev.c')
-rw-r--r-- | Xi/listdev.c | 3 |
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 */ } |