[PATCH 04/12] Xi: don't allow VCP/VCK be OpenDevice'd, but allow all SDs.

Peter Hutterer peter.hutterer at who-t.net
Thu Nov 27 23:03:02 PST 2008


From: Peter Hutterer <peter.hutterer at redhat.com>

Reverting to traditional XI behaviour.
---
 Xi/opendev.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/Xi/opendev.c b/Xi/opendev.c
index c51bb7e..8d24927 100644
--- a/Xi/opendev.c
+++ b/Xi/opendev.c
@@ -99,7 +99,6 @@ ProcXOpenDevice(ClientPtr client)
     int status = Success;
     xOpenDeviceReply rep;
     DeviceIntPtr dev;
-    XIClientPtr pXIClient;
 
     REQUEST(xOpenDeviceReq);
     REQUEST_SIZE_MATCH(xOpenDeviceReq);
@@ -115,14 +114,8 @@ ProcXOpenDevice(ClientPtr client)
     } else if (status != Success)
 	return status;
 
-    /* Don't let XI 1.x clients open devices other than floating SDs. */
-    pXIClient = dixLookupPrivate(&client->devPrivates, XIClientPrivateKey);
-    if (pXIClient->major_version < XI_2_Major)
-    {
-        if (dev->isMaster || (!dev->isMaster && dev->u.master))
-            return BadDevice;
-    }
-
+    if (dev->isMaster)
+        return BadDevice;
 
     OpenInputDevice(dev, client, &status);
     if (status != Success)
-- 
1.6.0.3




More information about the xorg mailing list