From: Peter Hutterer Date: Wed, 7 Aug 2013 23:55:18 +0000 (+1000) Subject: Fix version selection condition X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/157d147fe10dd31d7c6a286c046348b8699ba9ea Fix version selection condition If XI22 is true, XI21 is set too so we'd never actually register for XI 2.2 Signed-off-by: Peter Hutterer --- 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");