diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-08-04 01:12:41 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-08-04 01:12:41 -0400 |
| commit | 7be8ff66deeae55811b4f0395082f23f33967348 (patch) | |
| tree | bae2dfa4ff31f7c6e5ef220cd8105fe75b85d2f8 | |
| parent | 3d674b4af1a0188ec78d693d46ce0ca017b995a9 (diff) | |
cmd_mode: make modes case sensitive
This mirrors a change in i3 4.17 that makes binding modes case
sensitive
| -rw-r--r-- | sway/commands/mode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/mode.c b/sway/commands/mode.c index e5ddec4a..9ddb0089 100644 --- a/sway/commands/mode.c +++ b/sway/commands/mode.c @@ -1,7 +1,6 @@ #define _POSIX_C_SOURCE 200809L #include <stdbool.h> #include <string.h> -#include <strings.h> #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; } |
