summaryrefslogtreecommitdiff
path: root/hw/kdrive
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-10-25 01:12:45 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-10-25 01:12:45 +0300
commit65cd5aa4d754624566c2263015f1a018d137fce1 (patch)
treec37a0b8c10271f3254902b73ae765d1ce49da29c /hw/kdrive
parent0514d53e10b3521bb708a9cbde4bab525248eadb (diff)
kdrive/input: remove unnecessary #ifdef XINPUTs
Xi is now mandatory, so don't bother with the ifdefs.
Diffstat (limited to 'hw/kdrive')
-rw-r--r--hw/kdrive/src/kinput.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index 724f724db..fdeed822e 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -45,14 +45,12 @@
#include <X11/extensions/XKBsrv.h>
#endif
-#ifdef XINPUT
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "XIstubs.h" /* even though we don't use stubs. cute, no? */
#include "exevents.h"
#include "extinit.h"
#include "exglobals.h"
-#endif
#define AtomFromName(x) MakeAtom(x, strlen(x), 1)
@@ -394,9 +392,7 @@ KdPointerProc(DeviceIntPtr pDevice, int onoff)
{
DevicePtr pDev = (DevicePtr)pDevice;
KdPointerInfo *pi;
-#ifdef XINPUT
Atom xiclass;
-#endif
if (!pDev)
return BadImplementation;
@@ -719,9 +715,7 @@ KdKeyboardProc(DeviceIntPtr pDevice, int onoff)
Bool ret;
DevicePtr pDev = (DevicePtr)pDevice;
KdKeyboardInfo *ki;
-#ifdef XINPUT
Atom xiclass;
-#endif
if (!pDev)
return BadImplementation;
@@ -794,11 +788,9 @@ KdKeyboardProc(DeviceIntPtr pDevice, int onoff)
return BadImplementation;
}
-#ifdef XINPUT
xiclass = AtomFromName(XI_KEYBOARD);
AssignTypeAndName(pDevice, xiclass,
ki->name ? ki->name : "Generic KDrive Keyboard");
-#endif
KdResetInputMachine();
@@ -987,9 +979,7 @@ KdAddKeyboard (KdKeyboardInfo *ki)
return !Success;
}
-#ifdef XINPUT
RegisterOtherDevice(ki->dixdev);
-#endif
#ifdef DEBUG
ErrorF("added keyboard %s with dix id %d\n", ki->name, ki->dixdev->id);
@@ -1058,9 +1048,7 @@ KdAddPointer (KdPointerInfo *pi)
return BadDevice;
}
-#ifdef XINPUT
RegisterOtherDevice(pi->dixdev);
-#endif
for (prev = &kdPointers; *prev; prev = &(*prev)->next);
*prev = pi;