diff options
author | emersion <contact@emersion.fr> | 2018-06-07 19:29:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 19:29:26 +0100 |
commit | 07bee8cffe60b4a23ddd637461d8290f25f99be2 (patch) | |
tree | e3174539676a876ee882e72af579ba9e63e468e6 /sway/tree/workspace.c | |
parent | 2e289831ee3198f36e2c02bd4542fa4f6646a81b (diff) | |
parent | f4870d5432b9d90865fee177465ff9cf22fab51c (diff) |
Merge pull request #2084 from RedSoxFan/runtime-var-expansion
Runtime variable expansion
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index f78ae9a5..3c42e259 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -128,12 +128,14 @@ char *workspace_next_name(const char *output_name) { } if (strcmp("workspace", cmd) == 0 && name) { - wlr_log(L_DEBUG, "Got valid workspace command for target: '%s'", name); char *_target = strdup(name); + _target = do_var_replacement(_target); strip_quotes(_target); while (isspace(*_target)) { memmove(_target, _target+1, strlen(_target+1)); } + wlr_log(L_DEBUG, "Got valid workspace command for target: '%s'", + _target); // Make sure that the command references an actual workspace // not a command about workspaces |