From 264e213c08bf1e184f7e540ae841996292ed16bd Mon Sep 17 00:00:00 2001 From: minus Date: Fri, 15 Mar 2019 19:37:20 +0100 Subject: [PATCH] Fix quoting of commands passed to for_window E.g. `for_window [class="mpv"] move container to output "Dell Inc. ..."` does not work because the executed move command only uses `Dell` as output name. --- sway/commands.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/commands.c b/sway/commands.c index 522a5fd4..cb32169f 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -387,6 +387,7 @@ struct cmd_results *config_command(char *exec, char **new_block) { && handler->handle != cmd_bindsym && handler->handle != cmd_bindcode && handler->handle != cmd_set + && handler->handle != cmd_for_window && (*argv[i] == '\"' || *argv[i] == '\'')) { strip_quotes(argv[i]); }