aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-24 12:19:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-24 12:49:18 +1000
commitba9377c6d9e6d0d2813e471b516bb36902dae2ce (patch)
tree1a2fb00869dffa3ad6a26961183fcccefe4985c8 /src/evdev.h
parentInclude config.h from evdev.h (diff)
downloadxf86-input-evdev-ba9377c6d9e6d0d2813e471b516bb36902dae2ce.tar.gz
xf86-input-evdev-ba9377c6d9e6d0d2813e471b516bb36902dae2ce.tar.bz2
xf86-input-evdev-ba9377c6d9e6d0d2813e471b516bb36902dae2ce.zip
Remove need for --enable-multitouch
If we spot inputproto 2.1.99.3, we assume we have a capable X server. This should really be a server version check, but the server version hasn't been bumped yet. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index acd4289..609365f 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -43,6 +43,17 @@
#include <xf86_OSproc.h>
#include <xkbstr.h>
+/* FIXME: once the server version is bumped, we can remove this with a
+ * proper pkg-config check. Right now we need an inputproto check for
+ * the right protocol, the pkgconfig check for the mtdev pkgconfig, and an
+ * ABI check to undo the first two if the proto was updated but the server
+ * wasn't yet */
+#ifdef MULTITOUCH
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 16
+#undef MULTITOUCH
+#endif
+#endif
+
#ifdef MULTITOUCH
#include <mtdev.h>
#endif