Since having XQueryInputVersion means also having XGetExtensionVersion
we need to check the former first to avoid the deprecation warning.
backend_singleton->have_xinput = TRUE;
-#ifdef HAVE_XGET_EXTENSION_VERSION
- ext = XGetExtensionVersion (backend_singleton->xdpy, INAME);
-#elif HAVE_XQUERY_INPUT_VERSION
+#if defined(HAVE_XQUERY_INPUT_VERSION)
ext = XQueryInputVersion (backend_singleton->xdpy, XI_2_Major, XI_2_Minor);
+#elif defined(HAVE_XGET_EXTENSION_VERSION)
+ ext = XGetExtensionVersion (backend_singleton->xdpy, INAME);
#else
g_critical ("XInput does not have XGetExtensionVersion nor "
"XQueryInputVersion");