gdkdevicemanager-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, so we can safely always pass a higher version number than is potentially supported by the server. libXi was designed to be stable in the case where it doesn't recognize requests or events/replies, so this should still work in a case where we have new versions of the X server, and GTK+, but an old version of libXi, at least for however well that setup should work. https://bugzilla.gnome.org/show_bug.cgi?id=692467
This commit is contained in:
parent
99828efa50
commit
e340049eb8
@ -48,11 +48,7 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
|
||||
int major, minor;
|
||||
|
||||
major = 2;
|
||||
#ifdef XINPUT_2_2
|
||||
minor = 2;
|
||||
#else
|
||||
minor = 0;
|
||||
#endif /* XINPUT_2_2 */
|
||||
|
||||
if (!_gdk_disable_multidevice &&
|
||||
XIQueryVersion (xdisplay, &major, &minor) != BadRequest)
|
||||
|
Loading…
Reference in New Issue
Block a user