sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a90dddea4014707c2240e1c20a7b1a1500f4605d
parent 5c40cc46ac0160ac870ec926e2285824cad0dd9c
Author: wil <william.barsse@gmail.com>
Date:   Sat, 14 Jan 2017 19:48:41 +0100

[fix] handle auto layout of empty container

Diffstat:
Msway/layout.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sway/layout.c b/sway/layout.c @@ -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); } /**