config: Remove invalid click method

There is no "none" click method, it is either
software button area or clickfinger.
This commit is contained in:
Jens Peters 2024-02-24 14:38:45 +01:00
parent 7adf5533f9
commit c098c8de0c
No known key found for this signature in database
3 changed files with 2 additions and 6 deletions

View file

@ -680,7 +680,6 @@ extending outward from the snapped edge.
- *clickfinger* - Clicking with one, two or three finger(s) will produce - *clickfinger* - Clicking with one, two or three finger(s) will produce
left, right or middle button event without regard to the location of a left, right or middle button event without regard to the location of a
click. click.
- *none* - Physical clicks will not produce button events.
The default method depends on the touchpad hardware. The default method depends on the touchpad hardware.

View file

@ -472,7 +472,7 @@
- pointerSpeed [-1.0 to 1.0] - pointerSpeed [-1.0 to 1.0]
- accelProfile [flat|adaptive] - accelProfile [flat|adaptive]
- tapButtonMap [lrm|lmr] - tapButtonMap [lrm|lmr]
- clickMethod [none|buttonAreas|clickfinger] - clickMethod [buttonAreas|clickfinger]
--> -->
<libinput> <libinput>
<device category="default"> <device category="default">

View file

@ -564,10 +564,7 @@ fill_libinput_category(char *nodename, char *content)
? LIBINPUT_CONFIG_DWT_ENABLED ? LIBINPUT_CONFIG_DWT_ENABLED
: LIBINPUT_CONFIG_DWT_DISABLED; : LIBINPUT_CONFIG_DWT_DISABLED;
} else if (!strcasecmp(nodename, "clickMethod")) { } else if (!strcasecmp(nodename, "clickMethod")) {
if (!strcasecmp(content, "none")) { if (!strcasecmp(content, "clickfinger")) {
current_libinput_category->click_method =
LIBINPUT_CONFIG_CLICK_METHOD_NONE;
} else if (!strcasecmp(content, "clickfinger")) {
current_libinput_category->click_method = current_libinput_category->click_method =
LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER; LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER;
} else if (!strcasecmp(content, "buttonAreas")) { } else if (!strcasecmp(content, "buttonAreas")) {