From c098c8de0c59f862e794c76140503f55d9a4f233 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Sat, 24 Feb 2024 14:38:45 +0100 Subject: [PATCH] config: Remove invalid click method There is no "none" click method, it is either software button area or clickfinger. --- docs/labwc-config.5.scd | 1 - docs/rc.xml.all | 2 +- src/config/rcxml.c | 5 +---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index bc8cf59b..71c38b21 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -680,7 +680,6 @@ extending outward from the snapped edge. - *clickfinger* - Clicking with one, two or three finger(s) will produce left, right or middle button event without regard to the location of a click. - - *none* - Physical clicks will not produce button events. The default method depends on the touchpad hardware. diff --git a/docs/rc.xml.all b/docs/rc.xml.all index 5d0c4cff..7e0b2b17 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -472,7 +472,7 @@ - pointerSpeed [-1.0 to 1.0] - accelProfile [flat|adaptive] - tapButtonMap [lrm|lmr] - - clickMethod [none|buttonAreas|clickfinger] + - clickMethod [buttonAreas|clickfinger] --> diff --git a/src/config/rcxml.c b/src/config/rcxml.c index f18cce32..f4217e7f 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -564,10 +564,7 @@ fill_libinput_category(char *nodename, char *content) ? LIBINPUT_CONFIG_DWT_ENABLED : LIBINPUT_CONFIG_DWT_DISABLED; } else if (!strcasecmp(nodename, "clickMethod")) { - if (!strcasecmp(content, "none")) { - current_libinput_category->click_method = - LIBINPUT_CONFIG_CLICK_METHOD_NONE; - } else if (!strcasecmp(content, "clickfinger")) { + if (!strcasecmp(content, "clickfinger")) { current_libinput_category->click_method = LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER; } else if (!strcasecmp(content, "buttonAreas")) {