mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +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
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user