From 7330cb56501defb0002815767d2dc7f5b2b8ca1c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 28 Nov 2008 09:35:48 +1000 Subject: [PATCH] Xi: don't list attachment in ListInputDevices, but list all SDs. In XI2, we only list the VCP and the VCK as well as floating SDs to non-XI2 clients. This is not the case here, we just list all devices. Signed-off-by: Peter Hutterer --- Xi/listdev.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/Xi/listdev.c b/Xi/listdev.c index ce549da50..56ba2f6eb 100644 --- a/Xi/listdev.c +++ b/Xi/listdev.c @@ -187,10 +187,6 @@ 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; - else - dev->attached = GetPairedDevice(d)->id; if (client->swapped) { swapl(&dev->type, n); /* macro - braces are required */ @@ -348,16 +344,6 @@ ProcXListInputDevices(ClientPtr client) AddOtherInputDevices(); for (d = inputInfo.devices; d; d = d->next) { - if (pXIClient->major_version < XI_2_Major) - { - if (d->isMaster && - d != inputInfo.pointer && - d != inputInfo.keyboard) - continue; /* don't send master devices other than VCP/VCK */ - - if (!d->isMaster && d->u.master) - continue; /* don't send attached SDs */ - } rc = XaceHook(XACE_DEVICE_ACCESS, client, d, DixGetAttrAccess); if (rc != Success) return rc; @@ -366,11 +352,6 @@ ProcXListInputDevices(ClientPtr client) } for (d = inputInfo.off_devices; d; d = d->next) { - if (pXIClient->major_version < XI_2_Major && - !d->isMaster && - d->u.master) /* XXX can off_devices be attached? */ - continue; /* don't send attached SDs */ - rc = XaceHook(XACE_DEVICE_ACCESS, client, d, DixGetAttrAccess); if (rc != Success) return rc; @@ -387,26 +368,11 @@ ProcXListInputDevices(ClientPtr client) dev = (xDeviceInfoPtr) devbuf; for (d = inputInfo.devices; d; d = d->next) { - if (pXIClient->major_version < XI_2_Major) - { - if (d->isMaster && - d != inputInfo.pointer && - d != inputInfo.keyboard) - continue; /* don't count master devices other than VCP/VCK */ - - if (!d->isMaster && d->u.master) - continue; /* don't count attached SDs */ - } ListDeviceInfo(client, d, dev++, &devbuf, &classbuf, &namebuf); } for (d = inputInfo.off_devices; d; d = d->next) { - if (pXIClient->major_version < XI_2_Major && - !d->isMaster && - d->u.master) /* XXX can off_devices be attached? */ - continue; /* don't send attached SDs */ - ListDeviceInfo(client, d, dev++, &devbuf, &classbuf, &namebuf); } rep.ndevices = numdevs;