sway

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

commit 1669da719c96e80cc5c462bbd648b17c7cd25a82
parent 22315865696264aeef296364c7fc420b972a10fb
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun,  9 Aug 2015 19:32:03 -0400

Destroy containers when all views are removed

Diffstat:
Msway/layout.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sway/layout.c b/sway/layout.c @@ -216,6 +216,10 @@ void destroy_view(swayc_t *view) { } arrange_windows(parent, -1, -1); + + if (parent->children->length == 0 && parent->type == C_CONTAINER) { + destroy_view(parent); + } } void unfocus_all(swayc_t *container) {