mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
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.
This commit is contained in:
parent
1c4b94ae3c
commit
3b49f2782e
3 changed files with 77 additions and 57 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue