From 72851f27e0f390e991be38f5e3eaf14c814d13b9 Mon Sep 17 00:00:00 2001 From: Marvin Dostal Date: Sun, 7 Jan 2024 13:51:40 +0100 Subject: [PATCH] config: minor cleanup and review feedback --- src/config/rcxml.c | 6 +++--- src/seat.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 9b665d46..aedd7bb4 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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 { diff --git a/src/seat.c b/src/seat.c index 6a483cb3..4fba2ab1 100644 --- a/src/seat.c +++ b/src/seat.c @@ -15,7 +15,6 @@ #include "input/keyboard.h" #include "input/key-state.h" #include "labwc.h" -#include "libinput.h" #include "view.h" static void