mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
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.
This commit is contained in:
parent
445bc2a943
commit
a55472c6d8
1 changed files with 1 additions and 0 deletions
|
@ -372,6 +372,7 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv,
|
||||||
strlen("--input-device=")) == 0) {
|
strlen("--input-device=")) == 0) {
|
||||||
free(binding->input);
|
free(binding->input);
|
||||||
binding->input = strdup(argv[0] + strlen("--input-device="));
|
binding->input = strdup(argv[0] + strlen("--input-device="));
|
||||||
|
strip_quotes(binding->input);
|
||||||
} else if (strcmp("--no-warn", argv[0]) == 0) {
|
} else if (strcmp("--no-warn", argv[0]) == 0) {
|
||||||
warn = false;
|
warn = false;
|
||||||
} else if (strcmp("--no-repeat", argv[0]) == 0) {
|
} else if (strcmp("--no-repeat", argv[0]) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue