Backed out changeset a6493ee0c9b5
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Mar 2014 11:10:00 -0800
changeset 8286 81319d3c2305
parent 8285 a6493ee0c9b5
child 8287 fee216d949e3
Backed out changeset a6493ee0c9b5
src/video/x11/SDL_x11xinput2.c
--- a/src/video/x11/SDL_x11xinput2.c	Sun Mar 02 11:08:05 2014 -0800
+++ b/src/video/x11/SDL_x11xinput2.c	Sun Mar 02 11:10:00 2014 -0800
@@ -61,10 +61,9 @@
 }
 
 static int
-query_xinput2_version(Display *display)
+query_xinput2_version(Display *display, int major, int minor)
 {
     /* We don't care if this fails, so long as it sets major/minor on it's way out the door. */
-    int major = 0, minor = 0;
     X11_XIQueryVersion(display, &major, &minor);
     return ((major * 1000) + minor);
 }
@@ -102,7 +101,7 @@
     }
 
     /* We need at least 2.2 for Multitouch, 2.0 otherwise. */
-    version = query_xinput2_version(data->display);
+    version = query_xinput2_version(data->display, 2, 2);
     if (!xinput2_version_atleast(version, 2, 0)) {
         return; /* X server does not support the version we want at all. */
     }