Signed-off-by: Peter Hutterer <[email protected]>
---
Changes to v1:
- moved to the only spot we have maj/min defined now
- make it easier to read
src/xinput.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/xinput.c b/src/xinput.c
index 432cffc..1ed0c8c 100644
--- a/src/xinput.c
+++ b/src/xinput.c
@@ -194,6 +194,11 @@ xinput_version(Display *display)
{
int maj = 2,
min = 0;
+
+#if HAVE_XI21
+ min = 1;
+#endif
+
XIQueryVersion(display, &maj, &min);
}
#endif
--
1.7.7
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel