summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-12-05 14:25:31 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-12-06 06:59:39 +1000
commit4d481ea7c80dad9f53b47c026959c25ad9da5211 (patch)
tree0ea7f6b1f75c575407fcc9043b4d6289fc3c06f4 /src
parent72bac84df9ce72f2baf730655ecc23f1692d1e64 (diff)
Fix default scroll button number
Was exposing the evdev code rather than the xorg code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/xf86libinput.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 747e84b..b130a77 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -4386,6 +4386,7 @@ LibinputInitScrollMethodsProperty(DeviceIntPtr dev,
return;
scroll_button = libinput_device_config_scroll_get_default_button(device);
+ scroll_button = btn_linux2xorg(scroll_button);
prop_scroll_button_default = LibinputMakeProperty(dev,
LIBINPUT_PROP_SCROLL_BUTTON_DEFAULT,
XA_CARDINAL, 32,