diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-06-25 11:10:11 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-06-25 11:10:11 +0200 |
| commit | 9d4c795580f01c28a7c699a67964f075abd94e33 (patch) | |
| tree | 9a0a380095e31ddfd21a4f96d6abd935a2dae8a0 | |
| parent | d26e4884e653ac7b06a387887e73bf6478b1c6d8 (diff) | |
Strip quotes in bindsym --input-device=...
If the input device is quoted, which is common when using variables in the
config file, those quotes must be ignored here, or the input device will be
ignored.
Fixes #7029.
| -rw-r--r-- | sway/commands/bind.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 26c99e63..c0b383db 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -372,6 +372,7 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, strlen("--input-device=")) == 0) { free(binding->input); binding->input = strdup(argv[0] + strlen("--input-device=")); + strip_quotes(binding->input); } else if (strcmp("--no-warn", argv[0]) == 0) { warn = false; } else if (strcmp("--no-repeat", argv[0]) == 0) { |
