diff options
author | 2018-04-23 18:53:24 +1000 | |
---|---|---|
committer | 2018-04-23 18:54:45 +1000 | |
commit | fbb5198e43ef1e8bbb2e83f0942fbe4e8d787e85 (patch) | |
tree | b90fd28d3aefcf8e9de0c441ef7b90a2544a332e /sway/commands | |
parent | Implement rename workspace command (diff) | |
download | sway-fbb5198e43ef1e8bbb2e83f0942fbe4e8d787e85.tar.gz sway-fbb5198e43ef1e8bbb2e83f0942fbe4e8d787e85.tar.zst sway-fbb5198e43ef1e8bbb2e83f0942fbe4e8d787e85.zip |
Sort workspaces after rename
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/rename.c | 1 |
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) { | |||
72 | free(workspace->name); | 72 | free(workspace->name); |
73 | workspace->name = new_name; | 73 | workspace->name = new_name; |
74 | 74 | ||
75 | container_sort_workspaces(workspace->parent); | ||
75 | ipc_event_workspace(NULL, workspace, "rename"); | 76 | ipc_event_workspace(NULL, workspace, "rename"); |
76 | 77 | ||
77 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 78 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |