aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 9465b3a1..06cef900 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -596,7 +596,7 @@ void view_unmap(struct sway_view *view) {
596 struct sway_container *surviving_ancestor = container_destroy(view->swayc); 596 struct sway_container *surviving_ancestor = container_destroy(view->swayc);
597 597
598 // If the workspace wasn't reaped 598 // If the workspace wasn't reaped
599 if (surviving_ancestor->type >= C_WORKSPACE) { 599 if (surviving_ancestor && surviving_ancestor->type >= C_WORKSPACE) {
600 struct sway_container *ws = surviving_ancestor->type == C_WORKSPACE ? 600 struct sway_container *ws = surviving_ancestor->type == C_WORKSPACE ?
601 surviving_ancestor : 601 surviving_ancestor :
602 container_parent(surviving_ancestor, C_WORKSPACE); 602 container_parent(surviving_ancestor, C_WORKSPACE);