Allow for workspace renaming during exec handling

This change adds support for renaming a workspace when `exec` command
is being processed by keeping sway_workspace and pid_workspace names in
sync.

The change can be verified by running following command:

swaymsg exec <application>; swaymsg rename workspace number 1 to 5

Fixes: #3952
This commit is contained in:
mliszcz 2019-03-23 11:32:44 +01:00 committed by Brian Ashworth
parent cd8b4ace92
commit 200833caae
3 changed files with 20 additions and 0 deletions

View file

@ -85,4 +85,6 @@ struct sway_container *root_find_container(
void root_get_box(struct sway_root *root, struct wlr_box *box);
void root_rename_pid_workspaces(const char *old_name, const char *new_name);
#endif