summaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index ccd79f0e..0a69f8d5 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -218,7 +218,7 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent,
218 218
219 // Surfaces 219 // Surfaces
220 struct sway_node *current = seat_get_active_child(seat, parent); 220 struct sway_node *current = seat_get_active_child(seat, parent);
221 return tiling_container_at(current, lx, ly, surface, sx, sy); 221 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
222} 222}
223 223
224/** 224/**
@@ -246,7 +246,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
246 246
247 // Surfaces 247 // Surfaces
248 struct sway_node *current = seat_get_active_child(seat, parent); 248 struct sway_node *current = seat_get_active_child(seat, parent);
249 return tiling_container_at(current, lx, ly, surface, sx, sy); 249 return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
250} 250}
251 251
252/** 252/**