diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-20 14:55:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-25 14:58:08 +1000 |
commit | 5672e2d66444be74125c71b81373b82f8e1b7dd2 (patch) | |
tree | 812a5369eb51dcc28e044488fe8ddb95a7924661 /Xi/extinit.c | |
parent | 59bc615ed2e60c595887dcc11fe04935b49bcaff (diff) |
Xi: remove AllExtensionVersions.
Keeping an AllExtensionVersions array to save all versions of
all extension is rather pointless if only one extension uses it.
Rename to XIVersion, reduce to a single struct.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r-- | Xi/extinit.c | 4 |
1 files changed, 2 insertions, 2 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"); |