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.
This commit is contained in:
Peter Hutterer 2008-04-26 17:48:52 +09:30
parent b304b0a65c
commit 8973a3f798

View File

@ -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;