backends/x11: Drop warning about libinput property item count
libinput 1.3 introduced a custom acceleration profile extending the related properties from 2 to 3 items, which now triggering this warning. This does not have a functional impact since GNOME currently does not make use of the new profile. Also increasing the libinput version dependency which would be needed to change the expected item count is not possible in a stable release either. So just drop this warning to be compatible with newer versions of libinput. See: https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/-/merge_requests/39#note_1656566 Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2987 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3215>
This commit is contained in:
parent
e683264051
commit
8db400660a
@ -132,12 +132,7 @@ get_property (ClutterInputDevice *device,
|
||||
meta_clutter_x11_untrap_x_errors ();
|
||||
|
||||
if (rc == Success && type_ret == type && format_ret == format && nitems_ret >= nitems)
|
||||
{
|
||||
if (nitems_ret > nitems)
|
||||
g_warning ("Property '%s' for device '%s' returned %lu items, expected %lu",
|
||||
property, clutter_input_device_get_device_name (device), nitems_ret, nitems);
|
||||
return data_ret;
|
||||
}
|
||||
return data_ret;
|
||||
|
||||
meta_XFree (data_ret);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user