mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Make separate gaps functions per container type
In preparation for using type safety.
This commit is contained in:
parent
ed147aed30
commit
8bed4be1f3
7 changed files with 86 additions and 55 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue