From 48198691fdf98c7e33c1946d08b49378c909e792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baltaz=C3=A1r=20Radics?= Date: Tue, 2 Aug 2022 18:32:22 +0200 Subject: [PATCH] container_get_siblings: handle NULL workspace --- sway/tree/container.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/tree/container.c b/sway/tree/container.c index 04ef965f8..378662f3e 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -1412,6 +1412,9 @@ list_t *container_get_siblings(struct sway_container *container) { if (container_is_scratchpad_hidden(container)) { return NULL; } + if (!container->pending.workspace) { + return NULL; + } if (list_find(container->pending.workspace->tiling, container) != -1) { return container->pending.workspace->tiling; }