diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-07-01 01:08:04 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-07-15 19:22:05 +0200 |
commit | 472dce662116bb13101e27ecb4b05b803ee21e64 (patch) | |
tree | 4c700eadf38f81594f5d373de9990ee80c05188d /include | |
parent | Update version to v1.5-rc2 (diff) | |
download | sway-472dce662116bb13101e27ecb4b05b803ee21e64.tar.gz sway-472dce662116bb13101e27ecb4b05b803ee21e64.tar.zst sway-472dce662116bb13101e27ecb4b05b803ee21e64.zip |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/workspace.h | 3 |
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, | |||
105 | */ | 105 | */ |
106 | struct sway_container *workspace_wrap_children(struct sway_workspace *ws); | 106 | struct sway_container *workspace_wrap_children(struct sway_workspace *ws); |
107 | 107 | ||
108 | void workspace_unwrap_children(struct sway_workspace *ws, | ||
109 | struct sway_container *wrap); | ||
110 | |||
108 | void workspace_detach(struct sway_workspace *workspace); | 111 | void workspace_detach(struct sway_workspace *workspace); |
109 | 112 | ||
110 | void workspace_add_tiling(struct sway_workspace *workspace, | 113 | void workspace_add_tiling(struct sway_workspace *workspace, |