mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
[fix] handle auto layout of empty container
This commit is contained in:
parent
5c40cc46ac
commit
a90dddea40
1 changed files with 2 additions and 1 deletions
|
@ -1615,7 +1615,8 @@ size_t auto_slave_group_count(const swayc_t *container) {
|
|||
* Return the combined number of master and slave groups in the container.
|
||||
*/
|
||||
size_t auto_group_count(const swayc_t *container) {
|
||||
return auto_slave_group_count(container) + (container->nb_master ? 1 : 0);
|
||||
return auto_slave_group_count(container)
|
||||
+ (container->children->length && container->nb_master ? 1 : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue