config: minor cleanup and review feedback

This commit is contained in:
Marvin Dostal 2024-01-07 13:51:40 +01:00
parent e754768a4e
commit 72851f27e0
2 changed files with 3 additions and 4 deletions

View file

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

View file

@ -15,7 +15,6 @@
#include "input/keyboard.h"
#include "input/key-state.h"
#include "labwc.h"
#include "libinput.h"
#include "view.h"
static void