mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[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;
|
||||
|
||||
#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");
|
||||
|
Loading…
Reference in New Issue
Block a user