aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-06-04 22:24:34 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-06-05 10:08:00 -0400
commit067fe9d0472ca24328a962e8704d4e843f2a8af1 (patch)
tree2ea56856183e855ca2681834d21516b2c2351341 /sway/tree
parent0f715470328cbb5be77f95c7e209ce6bace2ef19 (diff)
downloadsway-067fe9d0472ca24328a962e8704d4e843f2a8af1.tar.xz
Support runtime var expansion and set at runtime
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/workspace.c4
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