x11: Always request XI2.2

The X server should fill in the minor version that it supports in the
case where it only supports the older version. We should not get a
BadRequest or fail the version check if we pass something higher.

https://bugzilla.gnome.org/show_bug.cgi?id=692466
This commit is contained in:
Jasper St. Pierre 2013-01-23 17:09:59 -05:00
parent 9dbc01b61f
commit 009da0c6ce

View File

@ -239,12 +239,7 @@ clutter_backend_x11_create_device_manager (ClutterBackendX11 *backend_x11)
{
#ifdef HAVE_XINPUT_2
int major = 2;
#ifdef HAVE_XINPUT_2_2
int minor = 2;
#else
int minor = 0;
#endif /* HAVE_XINPUT_2_2 */
if (XIQueryVersion (backend_x11->xdpy, &major, &minor) != BadRequest)
{