From: Peter Hutterer Date: Tue, 25 Oct 2011 22:03:20 +0000 (+1000) Subject: We support XI 2.1 now X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/01ea71c11d1eae6787ae16ef4044c7d2b34e1800?ds=inline;hp=--cc We support XI 2.1 now Signed-off-by: Peter Hutterer Reviewed-by: Julien Cristau --- 01ea71c11d1eae6787ae16ef4044c7d2b34e1800 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