]> Pileus Git - ~andy/gtk/commitdiff
gdkdevicemanager-x11: Always request XI2.2
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 23 Jan 2013 22:07:57 +0000 (17:07 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Jan 2013 17:45:01 +0000 (12:45 -0500)
The X server should fill in the minor version that it supports in the
case where it only supports the older version, so we can safely always
pass a higher version number than is potentially supported by the
server.

libXi was designed to be stable in the case where it doesn't recognize
requests or events/replies, so this should still work in a case where
we have new versions of the X server, and GTK+, but an old version of
libXi, at least for however well that setup should work.

https://bugzilla.gnome.org/show_bug.cgi?id=692467

gdk/x11/gdkdevicemanager-x11.c

index a34ff664cae44dc7be511d3e42835775b1c50a4e..d06456cb82c45893155b83fb218c25fd26fb98bf 100644 (file)
@@ -48,11 +48,7 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
           int major, minor;
 
           major = 2;
-#ifdef XINPUT_2_2
          minor = 2;
-#else
-          minor = 0;
-#endif /* XINPUT_2_2 */
 
           if (!_gdk_disable_multidevice &&
               XIQueryVersion (xdisplay, &major, &minor) != BadRequest)