aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-19 17:00:51 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-26 09:52:12 +1000
commit8bed4be1f387f9aa48910db1cf979cd847a9a2e3 (patch)
tree6bb0cd51d006de03535d4019d05c6787e8dd17aa /include/sway/tree
parentMerge pull request #2512 from apreiml/workspace_move_wrap (diff)
downloadsway-8bed4be1f387f9aa48910db1cf979cd847a9a2e3.tar.gz
sway-8bed4be1f387f9aa48910db1cf979cd847a9a2e3.tar.zst
sway-8bed4be1f387f9aa48910db1cf979cd847a9a2e3.zip
Make separate gaps functions per container type
In preparation for using type safety.
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/arrange.h6
-rw-r--r--include/sway/tree/container.h4
-rw-r--r--include/sway/tree/workspace.h4
3 files changed, 8 insertions, 6 deletions
diff --git a/include/sway/tree/arrange.h b/include/sway/tree/arrange.h
index d6abcc81..346103d3 100644
--- a/include/sway/tree/arrange.h
+++ b/include/sway/tree/arrange.h
@@ -4,12 +4,6 @@
4 4
5struct sway_container; 5struct sway_container;
6 6
7// Remove gaps around container
8void remove_gaps(struct sway_container *c);
9
10// Add gaps around container
11void add_gaps(struct sway_container *c);
12
13/** 7/**
14 * Arrange layout for all the children of the given container. 8 * Arrange layout for all the children of the given container.
15 */ 9 */
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 2cedb613..2b6e6e0c 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -335,6 +335,10 @@ struct sway_output *container_get_effective_output(struct sway_container *con);
335 335
336void container_discover_outputs(struct sway_container *con); 336void container_discover_outputs(struct sway_container *con);
337 337
338void container_remove_gaps(struct sway_container *container);
339
340void container_add_gaps(struct sway_container *container);
341
338int container_sibling_index(const struct sway_container *child); 342int container_sibling_index(const struct sway_container *child);
339 343
340#endif 344#endif
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index efcb7c69..04325919 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -75,4 +75,8 @@ struct sway_container *workspace_wrap_children(struct sway_container *ws);
75void workspace_add_floating(struct sway_container *workspace, 75void workspace_add_floating(struct sway_container *workspace,
76 struct sway_container *con); 76 struct sway_container *con);
77 77
78void workspace_remove_gaps(struct sway_container *ws);
79
80void workspace_add_gaps(struct sway_container *ws);
81
78#endif 82#endif