From 472dce662116bb13101e27ecb4b05b803ee21e64 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Wed, 1 Jul 2020 01:08:04 -0400 Subject: 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. (cherry picked from commit 92891fb1edef5136ae4eb35fec5b8523f031be81) --- include/sway/tree/workspace.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sway/tree/workspace.h') 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, -- cgit v1.2.3-54-g00ecf