diff options
Diffstat (limited to 'sway/commands/rename.c')
-rw-r--r-- | sway/commands/rename.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/rename.c b/sway/commands/rename.c index 88377b09..3b855fdf 100644 --- a/sway/commands/rename.c +++ b/sway/commands/rename.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "sway/output.h" | 9 | #include "sway/output.h" |
10 | #include "sway/tree/container.h" | 10 | #include "sway/tree/container.h" |
11 | #include "sway/tree/workspace.h" | 11 | #include "sway/tree/workspace.h" |
12 | #include "sway/tree/root.h" | ||
12 | 13 | ||
13 | static const char expected_syntax[] = | 14 | static const char expected_syntax[] = |
14 | "Expected 'rename workspace <old_name> to <new_name>' or " | 15 | "Expected 'rename workspace <old_name> to <new_name>' or " |
@@ -89,6 +90,9 @@ struct cmd_results *cmd_rename(int argc, char **argv) { | |||
89 | } | 90 | } |
90 | 91 | ||
91 | sway_log(SWAY_DEBUG, "renaming workspace '%s' to '%s'", workspace->name, new_name); | 92 | sway_log(SWAY_DEBUG, "renaming workspace '%s' to '%s'", workspace->name, new_name); |
93 | |||
94 | root_rename_pid_workspaces(workspace->name, new_name); | ||
95 | |||
92 | free(workspace->name); | 96 | free(workspace->name); |
93 | workspace->name = new_name; | 97 | workspace->name = new_name; |
94 | 98 | ||