mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
container_get_siblings: handle NULL workspace
This commit is contained in:
parent
d945c8f519
commit
5c239eaac5
|
@ -1410,6 +1410,9 @@ list_t *container_get_siblings(struct sway_container *container) {
|
||||||
if (container_is_scratchpad_hidden(container)) {
|
if (container_is_scratchpad_hidden(container)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
if (!container->pending.workspace) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
if (list_find(container->pending.workspace->tiling, container) != -1) {
|
if (list_find(container->pending.workspace->tiling, container) != -1) {
|
||||||
return container->pending.workspace->tiling;
|
return container->pending.workspace->tiling;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue