Xi: allow VCP/VCK to be OpenDevice'd as well.

All devices deserve to be equal. Except master devices, they are a bit more
equal than the others.
This commit is contained in:
Peter Hutterer 2007-10-19 15:26:09 +09:30
parent 155e2c559e
commit d9caa469b9

View File

@ -106,12 +106,6 @@ ProcXOpenDevice(ClientPtr client)
REQUEST(xOpenDeviceReq);
REQUEST_SIZE_MATCH(xOpenDeviceReq);
if (stuff->deviceid == inputInfo.pointer->id ||
stuff->deviceid == inputInfo.keyboard->id) {
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, BadDevice);
return Success;
}
if ((dev = LookupDeviceIntRec(stuff->deviceid)) == NULL) { /* not open */
for (dev = inputInfo.off_devices; dev; dev = dev->next)
if (dev->id == stuff->deviceid)