summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-10-19 11:42:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-10-19 11:42:57 +1000
commitbf7fffde520277e13b350950de9dc5bf89858951 (patch)
tree9210f0c7f8f69104749e373e6520bed9a5cd6c51
parent728217775626e2086d7c3acd0d242562390f145b (diff)
Don't init the horiz scroll property on non-pointer devices
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86libinput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 24219a6..8646c6d 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -4653,6 +4653,9 @@ LibinputInitHorizScrollProperty(DeviceIntPtr dev,
{
BOOL enabled = driver_data->options.horiz_scrolling_enabled;
+ if ((driver_data->capabilities & CAP_POINTER) == 0)
+ return;
+
prop_horiz_scroll = LibinputMakeProperty(dev,
LIBINPUT_PROP_HORIZ_SCROLL_ENABLED,
XA_INTEGER, 8,