summaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2018-09-10 10:03:53 -0700
committerWilliam Wold <[email protected]>2018-09-10 10:18:12 -0700
commit9a080192672d89b519933f5a16161ba83a597738 (patch)
treeace51cdc746a11d5795846b30cd6140c411c1545 /sway/tree/container.c
parente787a1581cc399ca7d953c9cd4d868499f5733a3 (diff)
Prevent stacked layout from crashing
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index ebc60027..0a69f8d5 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -246,7 +246,7 @@ static struct sway_container *container_at_stacked(struct sway_node *parent,
// Surfaces
struct sway_node *current = seat_get_active_child(seat, parent);
- return tiling_container_at(current, lx, ly, surface, sx, sy);
+ return current ? tiling_container_at(current, lx, ly, surface, sx, sy) : NULL;
}
/**