Commit 157d147f authored by Peter Hutterer's avatar Peter Hutterer

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's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 39ac9d85
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment