backends/x11: if the scroll button is nonzero, enable button scrolling

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1431
This commit is contained in:
Peter Hutterer 2020-09-08 16:28:33 +10:00 committed by Florian Müllner
parent e04e003fd5
commit 48243bfcbc

View File

@ -377,6 +377,7 @@ meta_input_settings_x11_set_scroll_button (MetaInputSettings *settings,
ClutterInputDevice *device,
guint button)
{
change_scroll_method (device, SCROLL_METHOD_FIELD_BUTTON, button != 0);
change_property (device, "libinput Button Scrolling Button",
XA_CARDINAL, 32, &button, 1);
}