mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 21:00:03 +01:00
Xi: MDs return the paired device's ID in attached field of ListInputDevices.
This commit is contained in:
parent
d61f481a44
commit
ce9fb2f8c4
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue