From d8432fdd4f13e9f9d1d44f5482faeb56562661a9 Mon Sep 17 00:00:00 2001 From: marha Date: Sun, 20 Dec 2009 21:08:15 +0000 Subject: Switched to xorg-server-1.7.99.2 --- xorg-server/Xi/extinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xorg-server/Xi/extinit.c') diff --git a/xorg-server/Xi/extinit.c b/xorg-server/Xi/extinit.c index 0c1291903..b7910cd13 100644 --- a/xorg-server/Xi/extinit.c +++ b/xorg-server/Xi/extinit.c @@ -70,7 +70,6 @@ SOFTWARE. #include "extinit.h" #include "exglobals.h" #include "swaprep.h" -#include "registry.h" #include "privates.h" #include "protocol-versions.h" @@ -1269,8 +1268,10 @@ XInputExtensionInit(void) IEventBase = extEntry->eventBase; XIVersion = thisversion; MakeDeviceTypeAtoms(); - RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone); - RegisterResourceName(RT_INPUTCLIENT, "INPUTCLIENT"); + RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone, + "INPUTCLIENT"); + if (!RT_INPUTCLIENT) + FatalError("Failed to add resource type for XI.\n"); FixExtensionEvents(extEntry); ReplySwapVector[IReqCode] = (ReplySwapPtr) SReplyIDispatch; EventSwapVector[DeviceValuator] = SEventIDispatch; -- cgit v1.2.3