aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r--include/sway/tree/workspace.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 3c9f93ed..fdd92f64 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -116,6 +116,13 @@ struct sway_container *workspace_add_tiling(struct sway_workspace *workspace,
116void workspace_add_floating(struct sway_workspace *workspace, 116void workspace_add_floating(struct sway_workspace *workspace,
117 struct sway_container *con); 117 struct sway_container *con);
118 118
119/**
120 * Adds a tiling container to the workspace without considering
121 * the workspace_layout, so the con will not be split.
122 */
123void workspace_insert_tiling_direct(struct sway_workspace *workspace,
124 struct sway_container *con, int index);
125
119struct sway_container *workspace_insert_tiling(struct sway_workspace *workspace, 126struct sway_container *workspace_insert_tiling(struct sway_workspace *workspace,
120 struct sway_container *con, int index); 127 struct sway_container *con, int index);
121 128
@@ -134,4 +141,12 @@ size_t workspace_num_tiling_views(struct sway_workspace *ws);
134 141
135size_t workspace_num_sticky_containers(struct sway_workspace *ws); 142size_t workspace_num_sticky_containers(struct sway_workspace *ws);
136 143
144/**
145 * workspace_squash is container_flatten in the reverse
146 * direction. Instead of eliminating redundant splits that are
147 * parents of the target container, it eliminates pairs of
148 * redundant H/V splits that are children of the workspace.
149 */
150void workspace_squash(struct sway_workspace *workspace);
151
137#endif 152#endif