sway

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

commit 31c6b5814f8725feb17f7819ea6951cf2c198327
parent 9f985f1f1cabf65b1c8349d9320a3031f959ec5a
Author: emersion <contact@emersion.fr>
Date:   Sun, 16 Sep 2018 10:44:39 +0200

Merge pull request #2638 from RyanDwyer/fix-tab-unmap-crash

Fix crash when unmapping last child of a tabbed workspace
Diffstat:
Msway/tree/container.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -202,6 +202,9 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent, } struct sway_seat *seat = input_manager_current_seat(input_manager); list_t *children = node_get_children(parent); + if (!children->length) { + return NULL; + } // Tab titles int title_height = container_titlebar_height();