summaryrefslogtreecommitdiffstats
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/workspace.c')
-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) {
128 } 128 }
129 129
130 if (strcmp("workspace", cmd) == 0 && name) { 130 if (strcmp("workspace", cmd) == 0 && name) {
131 wlr_log(L_DEBUG, "Got valid workspace command for target: '%s'", name);
132 char *_target = strdup(name); 131 char *_target = strdup(name);
132 _target = do_var_replacement(_target);
133 strip_quotes(_target); 133 strip_quotes(_target);
134 while (isspace(*_target)) { 134 while (isspace(*_target)) {
135 memmove(_target, _target+1, strlen(_target+1)); 135 memmove(_target, _target+1, strlen(_target+1));
136 } 136 }
137 wlr_log(L_DEBUG, "Got valid workspace command for target: '%s'",
138 _target);
137 139
138 // Make sure that the command references an actual workspace 140 // Make sure that the command references an actual workspace
139 // not a command about workspaces 141 // not a command about workspaces