summaryrefslogtreecommitdiff
path: root/Xi/extinit.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-29 14:19:42 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-29 14:19:42 +0930
commit8208b842b7dd3b30bafdd74147bdfa63bc00cc40 (patch)
tree14e41c32b7f1843212f8979d58af14733aa20029 /Xi/extinit.c
parent46340b740640b76b52b8e69bc67f9201c7e974c3 (diff)
Xi: add IEventBase global variable. Stores event base for X Input events.
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r--Xi/extinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index a647b9e18..99ace898f 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -277,6 +277,7 @@ static int (*SProcIVector[])(ClientPtr) = {
*/
int IReqCode = 0;
+int IEventBase = 0;
int BadDevice = 0;
static int BadEvent = 1;
int BadMode = 2;
@@ -885,6 +886,7 @@ RestoreExtensionEvents(void)
int i, j;
IReqCode = 0;
+ IEventBase = 0;
for (i = 0; i < ExtEventIndex - 1; i++) {
if ((EventInfo[i].type >= LASTEvent) && (EventInfo[i].type < 128))
@@ -1122,6 +1124,7 @@ XInputExtensionInit(void)
SProcIDispatch, IResetProc, StandardMinorOpcode);
if (extEntry) {
IReqCode = extEntry->base;
+ IEventBase = extEntry->eventBase;
AllExtensionVersions[IReqCode - 128] = thisversion;
MakeDeviceTypeAtoms();
RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone);