diff options
author | William Wold <wm@wmww.sh> | 2018-09-10 10:03:53 -0700 |
---|---|---|
committer | William Wold <wm@wmww.sh> | 2018-09-10 10:18:12 -0700 |
commit | 9a080192672d89b519933f5a16161ba83a597738 (patch) | |
tree | ace51cdc746a11d5795846b30cd6140c411c1545 | |
parent | Give windows pointer focus immediately when they are switched to (diff) | |
download | sway-9a080192672d89b519933f5a16161ba83a597738.tar.gz sway-9a080192672d89b519933f5a16161ba83a597738.tar.zst sway-9a080192672d89b519933f5a16161ba83a597738.zip |
Prevent stacked layout from crashing
-rw-r--r-- | sway/tree/container.c | 2 |
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, | |||
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 | /** |