aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-07-01 01:08:04 -0400
committerFurkan Sahin <furkan-dev@proton.me>2020-07-01 01:08:04 -0400
commitf1819556969ca51f2d30910c5fa72e7bc7adb94b (patch)
tree859ad6d0d7a0dae214bdfff7f0bf3263885a2ed8 /include
parent767407030f76b3c80bcf64b7828018d49482498c (diff)
commands/move: unwrap workspace container on move to new workspace
If moving e.g. `T[app app]` into a new workspace with `workspace_layout tabbed`, then post-move the tree in that workspace will be `T[T[app app]]`. This still happens with horizontal or vertical workspace layout, but is less visible since those containers have no decorations. Fixes #5426.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/workspace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 41b59796..1adbe68a 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -105,6 +105,9 @@ struct sway_container *workspace_find_container(struct sway_workspace *ws,
*/
struct sway_container *workspace_wrap_children(struct sway_workspace *ws);
+void workspace_unwrap_children(struct sway_workspace *ws,
+ struct sway_container *wrap);
+
void workspace_detach(struct sway_workspace *workspace);
void workspace_add_tiling(struct sway_workspace *workspace,