From 6faee17d20637df35e27cd2cac462323e4d665a1 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Fri, 15 Dec 2023 07:36:29 -0800 Subject: [PATCH] Add `touchpad` device type It is nice to have finer granularity for device types to allow for configurations such as using `naturalScroll` on touchpads, but not on regular pointer devices such as mice. --- docs/labwc-config.5.scd | 10 +++++----- docs/rc.xml.all | 6 +++--- include/config/libinput.h | 1 + src/config/libinput.c | 3 +++ src/config/rcxml.c | 1 + src/seat.c | 24 +++++++++++++++++------- 6 files changed, 30 insertions(+), 15 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index a7c9dda3..ac20dcb7 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -435,11 +435,11 @@ windows using the mouse. ** Define a category of devices to use the configuration values that follow. The category can be set to touch (devices that define a width - and height), non-touch, default, or the name of a device. You can obtain - your devices name by running *libinput list-devices* (you may need to - be root or a part of the input group to perform this.) Any members of - this category that are not set use the default for the device. With the - exception of tap-to-click, which is enabled by default. + and height), touchpad, non-touch, default, or the name of a device. You + can obtain your devices name by running *libinput list-devices* (you may + need to be root or a part of the input group to perform this.) Any + members of this category that are not set use the default for the + device. With the exception of tap-to-click, which is enabled by default. ** [yes|no] Use natural scrolling for this category if available. diff --git a/docs/rc.xml.all b/docs/rc.xml.all index 316586d9..bc0e092c 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -394,9 +394,9 @@