From 22ac5827b0d17c227b424a129c6eb0591d2a576a Mon Sep 17 00:00:00 2001 From: nejni-marji Date: Wed, 16 Jan 2019 19:32:24 -0600 Subject: [PATCH] Make binding modes case sensitive --- src/bindings.c | 2 +- src/config_directives.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings.c b/src/bindings.c index 732543d0..65a1821d 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -621,7 +621,7 @@ void switch_mode(const char *new_mode) { DLOG("Switching to mode %s\n", new_mode); SLIST_FOREACH(mode, &modes, modes) { - if (strcasecmp(mode->name, new_mode) != 0) + if (strcmp(mode->name, new_mode) != 0) continue; ungrab_all_keys(conn); diff --git a/src/config_directives.c b/src/config_directives.c index 0b01d54a..7ca6954c 100644 --- a/src/config_directives.c +++ b/src/config_directives.c @@ -122,7 +122,7 @@ CFGFUN(mode_binding, const char *bindtype, const char *modifiers, const char *ke } CFGFUN(enter_mode, const char *pango_markup, const char *modename) { - if (strcasecmp(modename, DEFAULT_BINDING_MODE) == 0) { + if (strcmp(modename, DEFAULT_BINDING_MODE) == 0) { ELOG("You cannot use the name %s for your mode\n", DEFAULT_BINDING_MODE); return; } -- 2.39.5