[xinput] Invert the XI extension version check
Since having XQueryInputVersion means also having XGetExtensionVersion we need to check the former first to avoid the deprecation warning.
This commit is contained in:
parent
fa3ed19db5
commit
745ca8a62c
@ -677,10 +677,10 @@ _clutter_x11_register_xinput ()
|
|||||||
|
|
||||||
backend_singleton->have_xinput = TRUE;
|
backend_singleton->have_xinput = TRUE;
|
||||||
|
|
||||||
#ifdef HAVE_XGET_EXTENSION_VERSION
|
#if defined(HAVE_XQUERY_INPUT_VERSION)
|
||||||
ext = XGetExtensionVersion (backend_singleton->xdpy, INAME);
|
|
||||||
#elif HAVE_XQUERY_INPUT_VERSION
|
|
||||||
ext = XQueryInputVersion (backend_singleton->xdpy, XI_2_Major, XI_2_Minor);
|
ext = XQueryInputVersion (backend_singleton->xdpy, XI_2_Major, XI_2_Minor);
|
||||||
|
#elif defined(HAVE_XGET_EXTENSION_VERSION)
|
||||||
|
ext = XGetExtensionVersion (backend_singleton->xdpy, INAME);
|
||||||
#else
|
#else
|
||||||
g_critical ("XInput does not have XGetExtensionVersion nor "
|
g_critical ("XInput does not have XGetExtensionVersion nor "
|
||||||
"XQueryInputVersion");
|
"XQueryInputVersion");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user