mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user