aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorBaltazár Radics <baltazar.radics@gmail.com>2022-08-02 18:32:22 +0200
committerSimon Ser <contact@emersion.fr>2022-11-11 18:57:29 +0100
commit5c239eaac59f327294aceac739c6fa035456ed14 (patch)
treed1eeba2439e88285d870bc78e482c253ed566e66 /sway
parentd945c8f519282be4bfadaded990effd729c8321d (diff)
container_get_siblings: handle NULL workspace
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 718dd0e0..b86a9925 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1410,6 +1410,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;
}