sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a55472c6d882d806e9d6fc0a78a7f7d8f888492e
parent 445bc2a943d905a0e5b1dc607a6797919c8cf341
Author: Thomas Jost <schnouki@schnouki.net>
Date:   Sat, 25 Jun 2022 11:10:11 +0200

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.

Diffstat:
Msway/commands/bind.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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) {