aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar minus <minus@mnus.de>2019-03-15 19:37:20 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-15 14:52:38 -0400
commit264e213c08bf1e184f7e540ae841996292ed16bd (patch)
treefa1c7387733c03d7456e51a6e75aa3a30435a2dd /sway/commands.c
parentoutput_cmd_background: validate colors (diff)
downloadsway-264e213c08bf1e184f7e540ae841996292ed16bd.tar.gz
sway-264e213c08bf1e184f7e540ae841996292ed16bd.tar.zst
sway-264e213c08bf1e184f7e540ae841996292ed16bd.zip
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.
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c1
1 files changed, 1 insertions, 0 deletions
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) {
387 && handler->handle != cmd_bindsym 387 && handler->handle != cmd_bindsym
388 && handler->handle != cmd_bindcode 388 && handler->handle != cmd_bindcode
389 && handler->handle != cmd_set 389 && handler->handle != cmd_set
390 && handler->handle != cmd_for_window
390 && (*argv[i] == '\"' || *argv[i] == '\'')) { 391 && (*argv[i] == '\"' || *argv[i] == '\'')) {
391 strip_quotes(argv[i]); 392 strip_quotes(argv[i]);
392 } 393 }