[PATCH xinput v2 2/2] We support XI 2.1 now

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 26 16:57:14 PDT 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
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



More information about the xorg-devel mailing list