aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-03-23 11:32:44 +0100
committerFurkan Sahin <furkan-dev@proton.me>2019-03-23 11:32:44 +0100
commit6545281d99449ef186880498a1bbfdcf4517e219 (patch)
treec0ecf9b611435f19a62682a0ee0feb564aa29acb /include
parent2fa139d19a2c9876bb41bc38094e3d12e61d59cd (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/root.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h
index 9f6cd3bb..c4f84207 100644
--- a/include/sway/tree/root.h
+++ b/include/sway/tree/root.h
@@ -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