mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
simplification of apply_auto_layout
Achieved by introducing auto_group_bounds function that produces the start/end indexes of a group inside an auto layot container.
This commit is contained in:
parent
3c84250be8
commit
1f47c58d63
2 changed files with 95 additions and 72 deletions
|
|
@ -76,9 +76,10 @@ void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, ..
|
|||
enum swayc_layouts default_layout(swayc_t *output);
|
||||
|
||||
bool is_auto_layout(enum swayc_layouts layout);
|
||||
int auto_group_start_index(swayc_t *container, int index);
|
||||
int auto_group_end_index(swayc_t *container, int index);
|
||||
size_t auto_group_count(swayc_t *container);
|
||||
size_t auto_group_index(swayc_t *container, int index);
|
||||
int auto_group_start_index(const swayc_t *container, int index);
|
||||
int auto_group_end_index(const swayc_t *container, int index);
|
||||
size_t auto_group_count(const swayc_t *container);
|
||||
size_t auto_group_index(const swayc_t *container, int index);
|
||||
bool auto_group_bounds(const swayc_t *container, size_t group_index, int *start, int *end);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue