From d9caa469b9bb4eb6125b890820853062fc2c4441 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 19 Oct 2007 15:26:09 +0930 Subject: [PATCH] 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. --- Xi/opendev.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Xi/opendev.c b/Xi/opendev.c index 0b0671d49..192cddc06 100644 --- a/Xi/opendev.c +++ b/Xi/opendev.c @@ -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)