Make separate gaps functions per container type

In preparation for using type safety.
This commit is contained in:
Ryan Dwyer 2018-08-19 17:00:51 +10:00
parent ed147aed30
commit 8bed4be1f3
7 changed files with 86 additions and 55 deletions

View file

@ -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.
*/

View file

@ -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

View file

@ -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