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;
|
||||
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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user