From 69abc41d25a6e0eb60e3d03b44eba1cb2f491741 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 16 Nov 2022 15:50:34 -0700 Subject: 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) --- sway/commands/rename.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sway/commands') 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) { sway_log(SWAY_DEBUG, "renaming workspace '%s' to '%s'", workspace->name, new_name); - root_rename_pid_workspaces(workspace->name, new_name); - free(workspace->name); workspace->name = new_name; -- cgit v1.2.3-54-g00ecf