[PATCH xinput] Fix version selection condition

Peter Hutterer peter.hutterer at who-t.net
Wed Aug 7 17:14:48 PDT 2013


If XI22 is true, XI21 is set too so we'd never actually register for XI 2.2

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/xinput.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xinput.c b/src/xinput.c
index e6e468c..b0e0e7f 100644
--- a/src/xinput.c
+++ b/src/xinput.c
@@ -206,10 +206,10 @@ xinput_version(Display	*display)
         int maj = 2,
             min = 0;
 
-#if HAVE_XI21
-        min = 1;
-#elif HAVE_XI22
+#if HAVE_XI22
         min = 2;
+#elif HAVE_XI21
+        min = 1;
 #endif
 
         forced_version = getenv("XINPUT_XI2_VERSION");
-- 
1.8.2.1



More information about the xorg-devel mailing list