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

Fix crash when unmapping last child of a tabbed workspace
This commit is contained in:
emersion 2018-09-16 10:44:39 +02:00 committed by GitHub
commit 31c6b5814f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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); struct sway_seat *seat = input_manager_current_seat(input_manager);
list_t *children = node_get_children(parent); list_t *children = node_get_children(parent);
if (!children->length) {
return NULL;
}
// Tab titles // Tab titles
int title_height = container_titlebar_height(); int title_height = container_titlebar_height();