diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-25 20:07:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-25 20:07:37 -0400 |
commit | 1a30c50ef40e918942f96c9a399f9bf94c1c0116 (patch) | |
tree | 6bb0cd51d006de03535d4019d05c6787e8dd17aa /include/sway/tree | |
parent | ed147aed30d89fdd1e4493adcdf821b414eab224 (diff) | |
parent | 8bed4be1f387f9aa48910db1cf979cd847a9a2e3 (diff) |
Merge pull request #2488 from RyanDwyer/separate-gaps-functions
Make separate gaps functions per container type
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/arrange.h | 6 | ||||
-rw-r--r-- | include/sway/tree/container.h | 4 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 4 |
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 @@ struct sway_container; -// Remove gaps around container -void remove_gaps(struct sway_container *c); - -// Add gaps around container -void add_gaps(struct sway_container *c); - /** * Arrange layout for all the children of the given container. */ 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); void container_discover_outputs(struct sway_container *con); +void container_remove_gaps(struct sway_container *container); + +void container_add_gaps(struct sway_container *container); + int container_sibling_index(const struct sway_container *child); #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); void workspace_add_floating(struct sway_container *workspace, struct sway_container *con); +void workspace_remove_gaps(struct sway_container *ws); + +void workspace_add_gaps(struct sway_container *ws); + #endif |