From 8973a3f7983240407dd6da59b3643f40e6a3d83a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sat, 26 Apr 2008 17:48:52 +0930 Subject: [PATCH] Xi: disable XI for clients < XI 2.0 Sorry. With the huge changes in the device handling I honestly don't know how to support XI and XI2 alongside. So let's just pretend XI doesn't exist if a client doesn't request it supporting XI2. --- Xi/getvers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Xi/getvers.c b/Xi/getvers.c index 43a1a4d26..daf9a028a 100644 --- a/Xi/getvers.c +++ b/Xi/getvers.c @@ -122,7 +122,10 @@ ProcXGetExtensionVersion(ClientPtr client) rep.RepType = X_GetExtensionVersion; rep.length = 0; rep.sequenceNumber = client->sequence; - rep.present = TRUE; + if (!pXIClient->major_version < XI_2_Major) /* sorry, no XI 1.x anymore. */ + rep.present = FALSE; + else + rep.present = TRUE; rep.major_version = AllExtensionVersions[IReqCode - 128].major_version; rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;