diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-26 17:48:52 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-26 19:01:00 +0930 |
commit | 8973a3f7983240407dd6da59b3643f40e6a3d83a (patch) | |
tree | 32da2b20eb8f664ea8efb6fe0aa0586c5552ae51 /Xi/getvers.c | |
parent | b304b0a65cc57127cdea103f2c5114e4ea79af41 (diff) |
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.
Diffstat (limited to 'Xi/getvers.c')
-rw-r--r-- | Xi/getvers.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |