diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | hw/dmx/dmxclient.h | 2 | ||||
-rw-r--r-- | hw/dmx/dmxlog.c | 4 | ||||
-rw-r--r-- | hw/dmx/dmxlog.h | 2 | ||||
-rw-r--r-- | hw/dmx/input/dmxcommon.h | 4 | ||||
-rw-r--r-- | hw/dmx/input/dmxeq.c | 23 | ||||
-rw-r--r-- | hw/dmx/input/dmxevents.c | 14 | ||||
-rw-r--r-- | hw/dmx/input/dmxinputinit.c | 19 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Config.c | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Cursor.c | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Globals.c | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 4 | ||||
-rw-r--r-- | hw/xfree86/common/xf86MiscExt.c | 4 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Privstr.h | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Xinput.c | 6 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Xinput.h | 4 | ||||
-rw-r--r-- | hw/xfree86/loader/dixsym.c | 6 | ||||
-rw-r--r-- | hw/xfree86/loader/loadmod.c | 2 | ||||
-rw-r--r-- | hw/xfree86/loader/xf86sym.c | 6 | ||||
-rw-r--r-- | hw/xgl/egl/kinput.c | 2 | ||||
-rw-r--r-- | hw/xprint/ddxInit.c | 4 | ||||
-rw-r--r-- | hw/xquartz/darwin.c | 2 | ||||
-rw-r--r-- | hw/xwin/winmouse.c | 8 | ||||
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/globals.h | 2 | ||||
-rw-r--r-- | include/windowstr.h | 6 | ||||
-rw-r--r-- | mi/miinitext.c | 8 | ||||
-rw-r--r-- | os/utils.c | 2 |
28 files changed, 12 insertions, 135 deletions
diff --git a/configure.ac b/configure.ac index d3a231705..166d9f603 100644 --- a/configure.ac +++ b/configure.ac @@ -1004,7 +1004,7 @@ DAMAGE_INC='-I$(top_srcdir)/damageext' MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' -AC_DEFINE(XINPUT, 1, [Support X Input extension]) +# XINPUT extension is integral part of the server XI_LIB='$(top_builddir)/Xi/libXi.la' XI_INC='-I$(top_srcdir)/Xi' diff --git a/hw/dmx/dmxclient.h b/hw/dmx/dmxclient.h index 8f018d153..91ba0493c 100644 --- a/hw/dmx/dmxclient.h +++ b/hw/dmx/dmxclient.h @@ -98,9 +98,7 @@ typedef XID KeySym64; #include <X11/extensions/XKBstr.h> #endif -#ifdef XINPUT #include <X11/extensions/XI.h> -#endif /* Always include these, since we query them even if we don't export XINPUT. */ #include <X11/extensions/XInput.h> /* For XDevice */ diff --git a/hw/dmx/dmxlog.c b/hw/dmx/dmxlog.c index 31a74cdf1..94b803528 100644 --- a/hw/dmx/dmxlog.c +++ b/hw/dmx/dmxlog.c @@ -42,10 +42,8 @@ #include "dmx.h" #include "dmxlog.h" #include "dmxinput.h" -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> -#endif static dmxLogLevel dmxCurrentLogLevel = dmxDebug; @@ -279,7 +277,6 @@ void dmxLogVisual(DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual) } } -#ifdef XINPUT /** Translate a (normalized) XInput event \a type into a human-readable * string. */ const char *dmxXInputEventName(int type) @@ -305,7 +302,6 @@ const char *dmxXInputEventName(int type) } #endif -#endif /** Translate an event \a type into a human-readable string. */ const char *dmxEventName(int type) diff --git a/hw/dmx/dmxlog.h b/hw/dmx/dmxlog.h index 8a5f725c8..7b614bd73 100644 --- a/hw/dmx/dmxlog.h +++ b/hw/dmx/dmxlog.h @@ -70,9 +70,7 @@ extern void dmxLogInputCont(DMXInputInfo *dmxInput, const char *format, ...); extern void dmxLogArgs(dmxLogLevel logLevel, int argc, char **argv); extern void dmxLogVisual(DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual); -#ifdef XINPUT extern const char *dmxXInputEventName(int type); #endif -#endif #endif diff --git a/hw/dmx/input/dmxcommon.h b/hw/dmx/input/dmxcommon.h index 1cc935d0b..a9b260cd9 100644 --- a/hw/dmx/input/dmxcommon.h +++ b/hw/dmx/input/dmxcommon.h @@ -63,13 +63,9 @@ #define DMX_COMMON_XKB DMX_COMMON_OTHER #endif -#ifdef XINPUT #define DMX_COMMON_PRIVATE \ DMX_COMMON_XKB; \ XDevice *xi -#else -#define DMX_COMMON_PRIVATE DMX_COMMON_OTHER -#endif #define GETONLYPRIVFROMPRIVATE \ myPrivate *priv = private diff --git a/hw/dmx/input/dmxeq.c b/hw/dmx/input/dmxeq.c index dff0b4423..afa2b2cd3 100644 --- a/hw/dmx/input/dmxeq.c +++ b/hw/dmx/input/dmxeq.c @@ -79,10 +79,8 @@ #include "inputstr.h" #include "scrnintstr.h" /* For screenInfo */ -#ifdef XINPUT #include <X11/extensions/XIproto.h> #define EXTENSION_PROC_ARGS void * -#endif #if DMX_EQ_DEBUG #define DMXDBG2(f,a,b) dmxLog(dmxDebug,f,a,b) @@ -100,9 +98,7 @@ typedef struct _Event { xEvent event; /**< Event. */ ScreenPtr pScreen; /**< Screen on which event occurred. */ -#ifdef XINPUT deviceValuator valuator; /**< XInput device valuator information. */ -#endif } EventRec, *EventPtr; /** Event queue. */ @@ -183,15 +179,11 @@ void dmxeqEnqueue(xEvent *e) /* Store the event in the queue */ dmxEventQueue.events[oldtail].event = *e; -#ifdef XINPUT - { - /* If this is an XInput event, store the - * valuator event, too */ - deviceKeyButtonPointer *ev = (deviceKeyButtonPointer *)e; - if (e->u.u.type >= LASTEvent && (ev->deviceid & MORE_EVENTS)) - dmxEventQueue.events[oldtail].valuator = *(deviceValuator *)(ev+1); - } -#endif + /* If this is an XInput event, store the + * valuator event, too */ + deviceKeyButtonPointer *ev = (deviceKeyButtonPointer *)e; + if (e->u.u.type >= LASTEvent && (ev->deviceid & MORE_EVENTS)) + dmxEventQueue.events[oldtail].valuator = *(deviceValuator *)(ev+1); /* Make sure that event times don't go * backwards - this is "unnecessary", @@ -211,7 +203,6 @@ void dmxeqSwitchScreen(ScreenPtr pScreen, Bool fromDIX) if (fromDIX) dmxEventQueue.pDequeueScreen = pScreen; } -#ifdef XINPUT static void dmxeqProcessXInputEvent(xEvent *xe, EventRec *e) { deviceKeyButtonPointer *ev = (deviceKeyButtonPointer *)xe; @@ -238,7 +229,6 @@ static void dmxeqProcessXInputEvent(xEvent *xe, EventRec *e) pDevice->public.processInputProc(xe, pDevice, 1); } } -#endif /** * This function is called from #ProcessInputEvents() to remove events @@ -285,11 +275,8 @@ void dmxeqProcessInputEvents(void) (DeviceIntPtr)dmxEventQueue.pKbd, 1); break; default: -#ifdef XINPUT dmxeqProcessXInputEvent(xe, e); break; -#endif - /* ifndef XINPUT, fall through */ case ButtonPress: case ButtonRelease: case MotionNotify: diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c index 26dc067dc..2e24ff42f 100644 --- a/hw/dmx/input/dmxevents.c +++ b/hw/dmx/input/dmxevents.c @@ -57,9 +57,7 @@ #include "mipointer.h" #include "mi.h" -#ifdef XINPUT #include "XIstubs.h" -#endif static int dmxGlobalX, dmxGlobalY; /* Global cursor position */ static int dmxGlobalInvalid; /* Flag indicating dmxCoreMotion @@ -154,7 +152,6 @@ static int dmxCheckFunctionKeys(DMXLocalInputInfoPtr dmxLocal, return 0; } -#ifdef XINPUT static void dmxEnqueueExtEvent(DMXLocalInputInfoPtr dmxLocal, xEvent *e, DMXBlockType block) { @@ -208,7 +205,6 @@ static void dmxEnqueueExtEvent(DMXLocalInputInfoPtr dmxLocal, xEvent *e, if (block) dmxSigioUnblock(); } -#endif DMXScreenInfo *dmxFindFirstScreen(int x, int y) { @@ -331,7 +327,6 @@ dmxCoreMotion(DevicePtr pDev, int x, int y, int delta, DMXBlockType block) -#ifdef XINPUT #define DMX_MAX_AXES 32 /* Max axes reported by this routine */ static void dmxExtMotion(DMXLocalInputInfoPtr dmxLocal, int *v, int firstAxis, int axesCount, @@ -537,7 +532,6 @@ static int dmxTranslateAndEnqueueExtEvent(DMXLocalInputInfoPtr dmxLocal, } return 0; } -#endif static int dmxGetButtonMapping(DMXLocalInputInfoPtr dmxLocal, int button) { @@ -578,14 +572,12 @@ void dmxInvalidateGlobalPosition(void) void dmxMotion(DevicePtr pDev, int *v, int firstAxes, int axesCount, DMXMotionType type, DMXBlockType block) { -#ifdef XINPUT GETDMXLOCALFROMPDEV; if (!dmxLocal->sendsCore) { dmxExtMotion(dmxLocal, v, firstAxes, axesCount, type, block); return; } -#endif if (axesCount == 2) { switch (type) { case DMX_RELATIVE: @@ -739,17 +731,13 @@ void dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym, * control of the input device LEDs. */ return; default: -#ifdef XINPUT if (type == ProximityIn || type == ProximityOut) { if (dmxLocal->sendsCore) return; /* Not a core event */ break; } -#endif if (type >= LASTEvent) { -#ifdef XINPUT if (dmxTranslateAndEnqueueExtEvent(dmxLocal, e, block)) -#endif dmxLogInput(dmxInput, "Unhandled extension event: %d\n", type); } else { dmxLogInput(dmxInput, "Unhandled event: %d (%s)\n", @@ -764,11 +752,9 @@ void dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym, xE.u.u.detail = detail; xE.u.keyButtonPointer.time = GetTimeInMillis(); -#ifdef XINPUT if (!dmxLocal->sendsCore) dmxEnqueueExtEvent(dmxLocal, &xE, block); else -#endif dmxeqEnqueue(&xE); #endif /*00*/ } diff --git a/hw/dmx/input/dmxinputinit.c b/hw/dmx/input/dmxinputinit.c index fd4eeaacb..7b5cc73a3 100644 --- a/hw/dmx/input/dmxinputinit.c +++ b/hw/dmx/input/dmxinputinit.c @@ -73,13 +73,11 @@ #include "windowstr.h" #include "mi.h" -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> #include "exevents.h" #define EXTENSION_PROC_ARGS void * #include "extinit.h" -#endif /* From XI.h */ #ifndef Relative @@ -462,9 +460,7 @@ static int dmxDeviceOnOff(DeviceIntPtr pDevice, int what) GETDMXINPUTFROMPDEVICE; int fd; DMXLocalInitInfo info; -#ifdef XINPUT int i; -#endif if (dmxInput->detached) return Success; @@ -504,41 +500,33 @@ static int dmxDeviceOnOff(DeviceIntPtr pDevice, int what) GetMaximumEventsNum(), #endif Relative); -#ifdef XINPUT for (i = 0; i < info.numRelAxes; i++) InitValuatorAxisStruct(pDevice, i, info.minval[0], info.maxval[0], info.res[0], info.minres[0], info.maxres[0]); -#endif } else if (info.numRelAxes) { InitValuatorClassDeviceStruct(pDevice, info.numRelAxes, dmxPointerGetMotionEvents, dmxPointerGetMotionBufferSize(), Relative); -#ifdef XINPUT for (i = 0; i < info.numRelAxes; i++) InitValuatorAxisStruct(pDevice, i, info.minval[0], info.maxval[0], info.res[0], info.minres[0], info.maxres[0]); -#endif } else if (info.numAbsAxes) { InitValuatorClassDeviceStruct(pDevice, info.numAbsAxes, dmxPointerGetMotionEvents, dmxPointerGetMotionBufferSize(), Absolute); -#ifdef XINPUT for (i = 0; i < info.numAbsAxes; i++) InitValuatorAxisStruct(pDevice, i+info.numRelAxes, info.minval[i+1], info.maxval[i+1], info.res[i+1], info.minres[i+1], info.maxres[i+1]); -#endif } } if (info.focusClass) InitFocusClassDeviceStruct(pDevice); -#ifdef XINPUT if (info.proximityClass) InitProximityClassDeviceStruct(pDevice); -#endif if (info.ptrFeedbackClass) InitPtrFeedbackClassDeviceStruct(pDevice, dmxChangePointerControl); if (info.kbdFeedbackClass) @@ -759,17 +747,10 @@ static DeviceIntPtr dmxAddDevice(DMXLocalInputInfoPtr dmxLocal) } } -#ifdef XINPUT if (!name) { name = "extension"; registerProcPtr = RegisterOtherDevice; } -#else - if (!name) - dmxLog(dmxFatal, - "Server not build with XINPUT support (cannot add %s)\n", - dmxLocal->name); -#endif if (!name || !registerProcPtr) dmxLog(dmxFatal, "Cannot add device %s\n", dmxLocal->name); diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index b6e1186a6..601b9bbc7 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -62,10 +62,8 @@ #include "extension.h" #include "Pci.h" -#ifdef XINPUT #include "xf86Xinput.h" extern DeviceAssocRec mouse_assoc; -#endif #ifdef XKB #undef XKB_IN_SERVER diff --git a/hw/xfree86/common/xf86Cursor.c b/hw/xfree86/common/xf86Cursor.c index 725fcb296..c6f603959 100644 --- a/hw/xfree86/common/xf86Cursor.c +++ b/hw/xfree86/common/xf86Cursor.c @@ -44,10 +44,8 @@ #include "xf86Priv.h" #include "xf86_OSproc.h" -#ifdef XINPUT #include <X11/extensions/XIproto.h> #include "xf86Xinput.h" -#endif #ifdef XFreeXDGA #include "dgaproc.h" diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c index 0dc42c66b..14bef39ea 100644 --- a/hw/xfree86/common/xf86Globals.c +++ b/hw/xfree86/common/xf86Globals.c @@ -100,9 +100,7 @@ xf86InfoRec xf86Info = { FALSE, /* vtSysreq */ SKWhenNeeded, /* ddxSpecialKeys */ NULL, /* pMouse */ -#ifdef XINPUT NULL, /* mouseLocal */ -#endif -1, /* lastEventTime */ FALSE, /* vtRequestsPending */ FALSE, /* inputPending */ diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 6d5eaadc3..bf45d7630 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -71,12 +71,8 @@ #include "xf86Date.h" #include "xf86Build.h" #include "mipointer.h" -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> -#else -#include "inputstr.h" -#endif #include "xf86DDC.h" #include "xf86Xinput.h" #include "xf86InPriv.h" diff --git a/hw/xfree86/common/xf86MiscExt.c b/hw/xfree86/common/xf86MiscExt.c index 40c196a3e..8817b792a 100644 --- a/hw/xfree86/common/xf86MiscExt.c +++ b/hw/xfree86/common/xf86MiscExt.c @@ -48,13 +48,9 @@ #define XF86_OS_PRIVS #include "xf86_OSlib.h" -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> #include "xf86Xinput.h" -#else -#include "inputstr.h" -#endif #include "xf86OSmouse.h" diff --git a/hw/xfree86/common/xf86Privstr.h b/hw/xfree86/common/xf86Privstr.h index 8cab56ec8..318a59f19 100644 --- a/hw/xfree86/common/xf86Privstr.h +++ b/hw/xfree86/common/xf86Privstr.h @@ -80,9 +80,7 @@ typedef struct { /* mouse part */ DeviceIntPtr pMouse; -#ifdef XINPUT pointer mouseLocal; -#endif /* event handler part */ int lastEventTime; diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 9f293cc5d..527930642 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -52,17 +52,13 @@ #include <X11/Xfuncproto.h> #include <X11/Xmd.h> -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> -#endif #include "xf86.h" #include "xf86Priv.h" #include "xf86Xinput.h" -#ifdef XINPUT #include "XIstubs.h" #include "xf86Optrec.h" -#endif #include "mipointer.h" #include "xf86InPriv.h" @@ -193,7 +189,6 @@ xf86ActivateDevice(LocalDevicePtr local) } -#ifdef XINPUT /*********************************************************************** * * Caller: ProcXOpenDevice @@ -322,7 +317,6 @@ void AddOtherInputDevices() { } -#endif int NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev) diff --git a/hw/xfree86/common/xf86Xinput.h b/hw/xfree86/common/xf86Xinput.h index d88bbbeee..dd72ec733 100644 --- a/hw/xfree86/common/xf86Xinput.h +++ b/hw/xfree86/common/xf86Xinput.h @@ -57,11 +57,9 @@ #endif #include "xf86str.h" #include "inputstr.h" -#ifdef XINPUT #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> #include "XIstubs.h" -#endif /* Input device flags */ #define XI86_OPEN_ON_INIT 0x01 /* open the device at startup time */ @@ -89,7 +87,6 @@ #define TS_Raw 60 #define TS_Scaled 61 -#ifdef XINPUT /* This holds the input driver entry and module information. */ typedef struct _InputDriverRec { int driverVersion; @@ -103,7 +100,6 @@ typedef struct _InputDriverRec { pointer module; int refCount; } InputDriverRec, *InputDriverPtr; -#endif /* This is to input devices what the ScrnInfoRec is to screens. */ diff --git a/hw/xfree86/loader/dixsym.c b/hw/xfree86/loader/dixsym.c index 61dec59c4..a2a239099 100644 --- a/hw/xfree86/loader/dixsym.c +++ b/hw/xfree86/loader/dixsym.c @@ -422,9 +422,9 @@ _X_HIDDEN void *dixLookupTab[] = { #ifdef PANORAMIX SYMVAR(noPanoramiXExtension) #endif -#ifdef XINPUT + SYMVAR(noXInputExtension) -#endif + #ifdef XIDLE SYMVAR(noXIdleExtension) #endif @@ -481,14 +481,12 @@ _X_HIDDEN void *dixLookupTab[] = { SYMVAR(XkbDfltRepeatInterval) #endif -#ifdef XINPUT /* Xi */ /* exevents.c */ SYMFUNC(InitValuatorAxisStruct) SYMFUNC(InitProximityClassDeviceStruct) /* extinit.c */ SYMFUNC(AssignTypeAndName) -#endif /* xf86DGA.c */ /* XXX This is exported from the DDX, not DIX. */ diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index 7f3bbe49c..04719a687 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -59,9 +59,7 @@ #include "misc.h" #include "xf86.h" #include "xf86Priv.h" -#ifdef XINPUT #include "xf86Xinput.h" -#endif #include "loader.h" #include "xf86Optrec.h" diff --git a/hw/xfree86/loader/xf86sym.c b/hw/xfree86/loader/xf86sym.c index 1d3e63971..e15b07a46 100644 --- a/hw/xfree86/loader/xf86sym.c +++ b/hw/xfree86/loader/xf86sym.c @@ -64,9 +64,7 @@ #include "xf86_OSproc.h" #include "xf86Parser.h" #include "xf86Config.h" -#ifdef XINPUT # include "xf86Xinput.h" -#endif #include "xf86OSmouse.h" #ifdef XV #include "xf86xv.h" @@ -291,14 +289,12 @@ _X_HIDDEN void *xfree86LookupTab[] = { SYMFUNC(xf86UnbindGARTMemory) SYMFUNC(xf86EnableAGP) SYMFUNC(xf86GARTCloseScreen) -#ifdef XINPUT SYMFUNC(XisbNew) SYMFUNC(XisbFree) SYMFUNC(XisbRead) SYMFUNC(XisbWrite) SYMFUNC(XisbTrace) SYMFUNC(XisbBlockDuration) -#endif /* xf86Bus.c */ SYMFUNC(xf86CheckPciSlot) @@ -673,7 +669,6 @@ _X_HIDDEN void *xfree86LookupTab[] = { SYMFUNC(GetTimeInMillis) /* xf86Xinput.c */ -#ifdef XINPUT SYMFUNC(xf86ProcessCommonOptions) SYMFUNC(xf86PostMotionEvent) SYMFUNC(xf86PostProximityEvent) @@ -684,7 +679,6 @@ _X_HIDDEN void *xfree86LookupTab[] = { SYMFUNC(xf86ActivateDevice) SYMFUNC(xf86XInputSetScreen) SYMFUNC(xf86ScaleAxis) -#endif #ifdef DPMSExtension SYMFUNC(DPMSGet) SYMFUNC(DPMSSet) diff --git a/hw/xgl/egl/kinput.c b/hw/xgl/egl/kinput.c index f892dc173..6c1018cb3 100644 --- a/hw/xgl/egl/kinput.c +++ b/hw/xgl/egl/kinput.c @@ -612,7 +612,6 @@ eglInitInput(KdMouseFuncs *pMouseFuncs, RegisterKeyboardDevice(pKeyboard); miRegisterPointerDevice(screenInfo.screens[0], pPointer); mieqInit(&pKeyboard->public, &pPointer->public); -#ifdef XINPUT { static long zero1, zero2; @@ -620,7 +619,6 @@ eglInitInput(KdMouseFuncs *pMouseFuncs, ErrorF("Extended Input Devices not yet supported. Impelement it at line %d in %s\n", __LINE__, __FILE__); } -#endif } /* diff --git a/hw/xprint/ddxInit.c b/hw/xprint/ddxInit.c index d744121aa..5cb24726b 100644 --- a/hw/xprint/ddxInit.c +++ b/hw/xprint/ddxInit.c @@ -284,8 +284,6 @@ ddxProcessArgument ( return(0); } -#ifdef XINPUT - #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> #include "XIstubs.h" @@ -373,8 +371,6 @@ SetDeviceValuators ( } -#endif /* XINPUT */ - #ifdef AIXV3 /* * This is just to get the server to link on AIX, where some bits diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c index aad55fc64..7e927c841 100644 --- a/hw/xquartz/darwin.c +++ b/hw/xquartz/darwin.c @@ -47,12 +47,10 @@ #include "globals.h" #include "dix.h" -#ifdef XINPUT # include <X11/extensions/XI.h> # include <X11/extensions/XIproto.h> # include "exevents.h" # include "extinit.h" -#endif #include <sys/types.h> #include <sys/time.h> diff --git a/hw/xwin/winmouse.c b/hw/xwin/winmouse.c index 1507dd34f..be2b66a08 100644 --- a/hw/xwin/winmouse.c +++ b/hw/xwin/winmouse.c @@ -36,7 +36,7 @@ #endif #include "win.h" -#if defined(XFree86Server) && defined(XINPUT) +#if defined(XFree86Server) #include "inputstr.h" /* Peek the internal button mapping */ @@ -106,7 +106,7 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState) 2); free(map); -#if defined(XFree86Server) && defined(XINPUT) +#if defined(XFree86Server) g_winMouseButtonMap = pDeviceInt->button->map; #endif break; @@ -116,7 +116,7 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState) break; case DEVICE_CLOSE: -#if defined(XFree86Server) && defined(XINPUT) +#if defined(XFree86Server) g_winMouseButtonMap = NULL; #endif case DEVICE_OFF: @@ -225,7 +225,7 @@ winMouseButtonsSendEvent (int iEventType, int iButton) /* Load an xEvent and enqueue the event */ xCurrentEvent.u.u.type = iEventType; -#if defined(XFree86Server) && defined(XINPUT) +#if defined(XFree86Server) if (g_winMouseButtonMap) xCurrentEvent.u.u.detail = g_winMouseButtonMap[iButton]; else diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 177908265..2d1ec9159 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -371,9 +371,6 @@ /* Support Xinerama extension */ #undef XINERAMA -/* Support X Input extension */ -#undef XINPUT - /* Build XKB */ #undef XKB diff --git a/include/globals.h b/include/globals.h index 9e5060d5f..e2e48044c 100644 --- a/include/globals.h +++ b/include/globals.h @@ -151,9 +151,7 @@ extern Bool noXkbExtension; extern Bool noPanoramiXExtension; #endif -#ifdef XINPUT extern Bool noXInputExtension; -#endif #ifdef XIDLE extern Bool noXIdleExtension; diff --git a/include/windowstr.h b/include/windowstr.h index a895a8805..0e45262d8 100644 --- a/include/windowstr.h +++ b/include/windowstr.h @@ -113,9 +113,7 @@ typedef struct _WindowOpt { RegionPtr clipShape; /* default: NULL */ RegionPtr inputShape; /* default: NULL */ #endif -#ifdef XINPUT struct _OtherInputMasks *inputMasks; /* default: NULL */ -#endif DevCursorList deviceCursors; /* default: NULL */ struct _GenericClientMasks *geMasks;/* default: NULL */ WindowAccessRec access; @@ -214,11 +212,7 @@ extern Mask DontPropagateMasks[]; #define wDontPropagateMask(w) wUseDefault(w, dontPropagateMask, DontPropagateMasks[(w)->dontPropagate]) #define wOtherEventMasks(w) wUseDefault(w, otherEventMasks, 0) #define wOtherClients(w) wUseDefault(w, otherClients, NULL) -#ifdef XINPUT #define wOtherInputMasks(w) wUseDefault(w, inputMasks, NULL) -#else -#define wOtherInputMasks(w) NULL -#endif #define wPassiveGrabs(w) wUseDefault(w, passiveGrabs, NULL) #define wUserProps(w) wUseDefault(w, userProps, NULL) #define wBackingBitPlanes(w) wUseDefault(w, backingBitPlanes, ~0L) diff --git a/mi/miinitext.c b/mi/miinitext.c index 4f3b92e31..00f0d271a 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -197,9 +197,7 @@ extern Bool noPanoramiXExtension; #ifdef INXQUARTZ extern Bool noPseudoramiXExtension; #endif -#ifdef XINPUT extern Bool noXInputExtension; -#endif #ifdef XIDLE extern Bool noXIdleExtension; #endif @@ -262,9 +260,7 @@ extern void PanoramiXExtensionInit(INITARGS); #ifdef INXQUARTZ extern void PseudoramiXExtensionInit(INITARGS); #endif -#ifdef XINPUT extern void XInputExtensionInit(INITARGS); -#endif #ifdef XTEST extern void XTestExtensionInit(INITARGS); #endif @@ -448,9 +444,7 @@ static ExtensionToggle ExtensionToggleList[] = #ifdef PANORAMIX { "XINERAMA", &noPanoramiXExtension }, #endif -#ifdef XINPUT { "XInputExtension", &noXInputExtension }, -#endif #ifdef XKB { "XKEYBOARD", &noXkbExtension }, #endif @@ -632,9 +626,7 @@ static ExtensionModule staticExtensions[] = { #ifdef MITSHM { ShmExtensionInit, SHMNAME, &noMITShmExtension, NULL, NULL }, #endif -#ifdef XINPUT { XInputExtensionInit, "XInputExtension", &noXInputExtension, NULL, NULL }, -#endif #ifdef XTEST { XTestExtensionInit, XTestExtensionName, &noTestExtensions, NULL, NULL }, #endif diff --git a/os/utils.c b/os/utils.c index d1bc1a18a..4bebeca9e 100644 --- a/os/utils.c +++ b/os/utils.c @@ -214,9 +214,7 @@ _X_EXPORT Bool noXFixesExtension = FALSE; /* Xinerama is disabled by default unless enabled via +xinerama */ _X_EXPORT Bool noPanoramiXExtension = TRUE; #endif -#ifdef XINPUT _X_EXPORT Bool noXInputExtension = FALSE; -#endif #ifdef XIDLE _X_EXPORT Bool noXIdleExtension = FALSE; #endif |