From 009da0c6ce7f202af1f39e2c79ea0b35cb64a6f3 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 23 Jan 2013 17:09:59 -0500 Subject: [PATCH] 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 --- clutter/x11/clutter-backend-x11.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index 231524659..391faeb11 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -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) {