From f59b665792fb664d00c3acd91e30977a05dc09f3 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sun, 4 Aug 2019 01:12:41 -0400 Subject: [PATCH] cmd_mode: make modes case sensitive This mirrors a change in i3 4.17 that makes binding modes case sensitive --- sway/commands/mode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sway/commands/mode.c b/sway/commands/mode.c index e5ddec4a2..9ddb00892 100644 --- a/sway/commands/mode.c +++ b/sway/commands/mode.c @@ -1,7 +1,6 @@ #define _POSIX_C_SOURCE 200809L #include #include -#include #include "sway/commands.h" #include "sway/config.h" #include "sway/ipc-server.h" @@ -44,7 +43,7 @@ struct cmd_results *cmd_mode(int argc, char **argv) { // Find mode for (int i = 0; i < config->modes->length; ++i) { struct sway_mode *test = config->modes->items[i]; - if (strcasecmp(test->name, mode_name) == 0) { + if (strcmp(test->name, mode_name) == 0) { mode = test; break; }