mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
container_get_siblings: handle NULL workspace
This commit is contained in:
parent
9e879242fd
commit
48198691fd
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue