aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-04-23 18:53:24 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-04-23 18:54:45 +1000
commitfbb5198e43ef1e8bbb2e83f0942fbe4e8d787e85 (patch)
treeb90fd28d3aefcf8e9de0c441ef7b90a2544a332e /sway/commands
parentd956286b92a71accb2ac6c895b51502a3eab3bcd (diff)
Sort workspaces after rename
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/rename.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/rename.c b/sway/commands/rename.c
index 4be912a9..104a3392 100644
--- a/sway/commands/rename.c
+++ b/sway/commands/rename.c
@@ -72,6 +72,7 @@ struct cmd_results *cmd_rename(int argc, char **argv) {
free(workspace->name);
workspace->name = new_name;
+ container_sort_workspaces(workspace->parent);
ipc_event_workspace(NULL, workspace, "rename");
return cmd_results_new(CMD_SUCCESS, NULL, NULL);