summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-16 09:06:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-01-16 09:16:01 +1000
commit1b6fbf9ead978322beccc1970b925dce0cd43815 (patch)
treed68efd2804e9a3896de11889bda497c4a83fe22a
parent99c932c1a0db7821df3ef78efcfe4824697c4815 (diff)
Require libXi 1.2 and inputproto 1.5.
Device properties are available in a released libXi version now, so there's no need to keep them conditional, make 1.5 mandatory. We also have the explicit check for XI2 functions in libXi, so there's no need to have requirements for inputproto 1.9.99.5.
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am3
-rw-r--r--src/xinput.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 24df61f..a439c68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AC_PROG_CC
AC_PROG_INSTALL
# Checks for pkg-config packages
-PKG_CHECK_MODULES(XINPUT, x11 xext xi [inputproto >= 1.9.99.5])
+PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
LIBS="$XINPUT_LIBS $LIBS"
AC_CHECK_FUNC(XSetClientPointer,AC_DEFINE(HAVE_XI2,1,[XInput Version 2 Enabled]))
diff --git a/src/Makefile.am b/src/Makefile.am
index 6ab00f3..1efddb8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,7 +26,7 @@ xinput_LDADD = $(XINPUT_LIBS)
if HAVE_XI2
- xinput2_files = hierarchy.c setcp.c property.c
+ xinput2_files = hierarchy.c setcp.c
endif # HAVE_XI2
xinput_SOURCES = \
@@ -37,6 +37,7 @@ xinput_SOURCES = \
setmode.c \
setptr.c \
state.c \
+ property.c \
test.c \
version.c \
xinput.c \
diff --git a/src/xinput.c b/src/xinput.c
index ce19aae..6f41619 100644
--- a/src/xinput.c
+++ b/src/xinput.c
@@ -106,6 +106,7 @@ static entry drivers[] =
"<window> <device>",
set_clientpointer
},
+#endif
{ "list-props",
"<device> [<device> ...]",
list_props
@@ -126,7 +127,6 @@ static entry drivers[] =
"<device> <property>",
delete_prop
},
-#endif
{0, 0, 0
}
};