Xi: MDs return the paired device's ID in attached field of ListInputDevices.
This commit is contained in:
parent
d61f481a44
commit
ce9fb2f8c4
|
@ -188,6 +188,8 @@ CopySwapDevice(ClientPtr client, DeviceIntPtr d, int num_classes,
|
||||||
dev->use = IsXExtensionDevice;
|
dev->use = IsXExtensionDevice;
|
||||||
if (!d->isMaster)
|
if (!d->isMaster)
|
||||||
dev->attached = (d->u.master) ? d->u.master->id : IsFloating;
|
dev->attached = (d->u.master) ? d->u.master->id : IsFloating;
|
||||||
|
else
|
||||||
|
dev->attached = GetPairedDevice(d)->id;
|
||||||
|
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
swapl(&dev->type, n); /* macro - braces are required */
|
swapl(&dev->type, n); /* macro - braces are required */
|
||||||
|
|
Loading…
Reference in New Issue