aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <ronan@rjp.ie>2022-11-16 15:50:34 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2022-11-26 10:29:59 +0100
commit69abc41d25a6e0eb60e3d03b44eba1cb2f491741 (patch)
treedfa1a65e5a854742ad78581dec15f050f81afdfb /sway/commands
parentnode: prettify node type names (diff)
downloadsway-69abc41d25a6e0eb60e3d03b44eba1cb2f491741.tar.gz
sway-69abc41d25a6e0eb60e3d03b44eba1cb2f491741.tar.zst
sway-69abc41d25a6e0eb60e3d03b44eba1cb2f491741.zip
launcher: track workspaces by node
This removes the need to rename the pid_workspaces when a workspace is renamed. It also opens the possibility of tracking other node types. Tracking containers would allow application to be placed correctly in the container tree even if the user has moved their focus elsewhere since it was launched. (cherry picked from commit 3b49f2782e8faf68766269b9c7390b16e25ae824)
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/rename.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/commands/rename.c b/sway/commands/rename.c
index 4656a410..60a66d58 100644
--- a/sway/commands/rename.c
+++ b/sway/commands/rename.c
@@ -92,8 +92,6 @@ struct cmd_results *cmd_rename(int argc, char **argv) {
92 92
93 sway_log(SWAY_DEBUG, "renaming workspace '%s' to '%s'", workspace->name, new_name); 93 sway_log(SWAY_DEBUG, "renaming workspace '%s' to '%s'", workspace->name, new_name);
94 94
95 root_rename_pid_workspaces(workspace->name, new_name);
96
97 free(workspace->name); 95 free(workspace->name);
98 workspace->name = new_name; 96 workspace->name = new_name;
99 97