diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-01-05 09:40:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 09:40:47 -0500 |
commit | fdc92e745498a4e0707a51c3fd3390d462e9ae59 (patch) | |
tree | 40cdc706c8b1439d630c6b514817c8e6f0b4e4fd /sway/commands.c | |
parent | c5452a3220b0f42c310a17a375908535e661debf (diff) | |
parent | c83900593daace2ef85174163edf2748179e28f2 (diff) |
Merge pull request #1554 from martinetd/cmd_set
config: add 'set' command
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index c1c6dc5d..f01329db 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -138,6 +138,7 @@ static struct cmd_handler handlers[] = { { "input", cmd_input }, { "output", cmd_output }, { "seat", cmd_seat }, + { "set", cmd_set }, }; static int handler_compare(const void *_a, const void *_b) { @@ -290,7 +291,7 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) { int i; // Var replacement, for all but first argument of set // TODO commands - for (i = /*handler->handle == cmd_set ? 2 :*/ 1; i < argc; ++i) { + for (i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) { argv[i] = do_var_replacement(argv[i]); unescape_string(argv[i]); } |