config: change libinput variables to camelCase

This is more consistent with other rc.xml variables.

strcasecmp() is used in src/config/rc.xml, so there are not backward
compatibility issues.
This commit is contained in:
Johan Malm 2021-10-19 21:44:44 +01:00
parent 5f14ab751f
commit 7398966661
2 changed files with 12 additions and 12 deletions

View file

@ -120,18 +120,18 @@ Configuration must be wrapped in a <labwc_config> root-node.
this category that aren't set use the default for the device. With the
exception of tap-to-click, which is enabled by default.
*<libinput><device category=""><naturalscroll>* [yes|no]
*<libinput><device category=""><naturalScroll>* [yes|no]
Use natural scrolling for this category if available.
*<libinput><device category=""><lefthanded>* [yes|no]
*<libinput><device category=""><leftHanded>* [yes|no]
Use your devices left-handed mode if available.
*<libinput><device category=""><pointerspeed>*
*<libinput><device category=""><pointerSpeed>* [\-1.0 to 1.0]
Set the pointer speed for this category. The speed is a number between
\-1 and 1, with 0 being the default in most cases, and 1 being the
fastest.
*<libinput><device category=""><accelprofile>* [flat|adaptive]
*<libinput><device category=""><accelProfile>* [flat|adaptive]
Set the pointer's acceleration profile for this category. Flat applies
no acceleration (the pointers velocity is constant), while adaptive
changes the pointers speed based the actual speed of your mouse or
@ -141,12 +141,12 @@ Configuration must be wrapped in a <labwc_config> root-node.
Enable or disable tap-to-click for this category. This is enabled by
default for all categories.
*<libinput><device category=""><middleemulation>* [yes|no]
*<libinput><device category=""><middleEmulation>* [yes|no]
Enable or disable middle button emulation for this category. Middle
emulation processes a simultaneous left and right click as a press of
the middle mouse button (scroll wheel).
*<libinput>device category=""><disablewhiletyping>* [yes|no]
*<libinput>device category=""><disableWhileTyping>* [yes|no]
Enable or disable disable while typing for this category. DWT ignores
any motion events while a keyboard is typing, and for a short while
after as well.

View file

@ -157,12 +157,12 @@ fill_libinput_category(char *nodename, char *content)
} else {
current_libinput_category->name = strdup(content);
}
} else if (!strcasecmp(nodename, "naturalscroll")) {
} else if (!strcasecmp(nodename, "naturalScroll")) {
current_libinput_category->natural_scroll =
get_bool(content) ? 1 : 0;
} else if (!strcasecmp(nodename, "lefthanded")) {
} else if (!strcasecmp(nodename, "leftHanded")) {
current_libinput_category->left_handed = get_bool(content) ? 1 : 0;
} else if (!strcmp(nodename, "pointerspeed")) {
} else if (!strcasecmp(nodename, "pointerSpeed")) {
current_libinput_category->pointer_speed = atof(content);
if (current_libinput_category->pointer_speed < -1) {
current_libinput_category->pointer_speed = -1;
@ -173,13 +173,13 @@ fill_libinput_category(char *nodename, char *content)
current_libinput_category->tap = get_bool(content) ?
LIBINPUT_CONFIG_TAP_ENABLED :
LIBINPUT_CONFIG_TAP_DISABLED;
} else if (!strcasecmp(nodename, "accelprofile")) {
} else if (!strcasecmp(nodename, "accelProfile")) {
current_libinput_category->accel_profile = get_accel_profile(content);
} else if (!strcasecmp(nodename, "middleemulation")) {
} else if (!strcasecmp(nodename, "middleEmulation")) {
current_libinput_category->middle_emu = get_bool(content) ?
LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED :
LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED;
} else if (!strcasecmp(nodename, "disablewhiletyping")) {
} else if (!strcasecmp(nodename, "disableWhileTyping")) {
current_libinput_category->dwt = get_bool(content) ?
LIBINPUT_CONFIG_DWT_ENABLED :
LIBINPUT_CONFIG_DWT_DISABLED;