aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-09-16 10:44:39 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-16 10:44:39 +0200
commit31c6b5814f8725feb17f7819ea6951cf2c198327 (patch)
tree1b57c6edfc1a0da28f03088b1290c0e0e9bd9eb0 /sway
parentMerge pull request #2634 from ianyfan/ipc (diff)
parentFix crash when unmapping last child of a tabbed workspace (diff)
downloadsway-31c6b5814f8725feb17f7819ea6951cf2c198327.tar.gz
sway-31c6b5814f8725feb17f7819ea6951cf2c198327.tar.zst
sway-31c6b5814f8725feb17f7819ea6951cf2c198327.zip
Merge pull request #2638 from RyanDwyer/fix-tab-unmap-crash
Fix crash when unmapping last child of a tabbed workspace
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index df064573..f906449a 100644
--- 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,
202 } 202 }
203 struct sway_seat *seat = input_manager_current_seat(input_manager); 203 struct sway_seat *seat = input_manager_current_seat(input_manager);
204 list_t *children = node_get_children(parent); 204 list_t *children = node_get_children(parent);
205 if (!children->length) {
206 return NULL;
207 }
205 208
206 // Tab titles 209 // Tab titles
207 int title_height = container_titlebar_height(); 210 int title_height = container_titlebar_height();