summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xi/extinit.c4
-rw-r--r--Xi/getvers.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 78f216803..9a20bfdc3 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -343,7 +343,7 @@ int RT_INPUTCLIENT;
*
*/
-extern XExtensionVersion AllExtensionVersions[];
+extern XExtensionVersion XIVersion;
Mask PropagateMask[MAXDEVICES];
@@ -1092,7 +1092,7 @@ XInputExtensionInit(void)
if (extEntry) {
IReqCode = extEntry->base;
IEventBase = extEntry->eventBase;
- AllExtensionVersions[IReqCode - 128] = thisversion;
+ XIVersion = thisversion;
MakeDeviceTypeAtoms();
RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone);
RegisterResourceName(RT_INPUTCLIENT, "INPUTCLIENT");
diff --git a/Xi/getvers.c b/Xi/getvers.c
index b4bc468ea..2ca3bb3f4 100644
--- a/Xi/getvers.c
+++ b/Xi/getvers.c
@@ -62,7 +62,7 @@ SOFTWARE.
#include "getvers.h"
-XExtensionVersion AllExtensionVersions[128];
+XExtensionVersion XIVersion;
/***********************************************************************
*
@@ -122,8 +122,8 @@ ProcXGetExtensionVersion(ClientPtr client)
rep.length = 0;
rep.sequenceNumber = client->sequence;
rep.present = TRUE;
- rep.major_version = AllExtensionVersions[IReqCode - 128].major_version;
- rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;
+ rep.major_version = XIVersion.major_version;
+ rep.minor_version = XIVersion.minor_version;
WriteReplyToClient(client, sizeof(xGetExtensionVersionReply), &rep);