mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
sway/tree/container: check if container is scratchpad hidden first before getting siblings
This commit is contained in:
parent
6b3245ac77
commit
10e060efcd
1 changed files with 4 additions and 4 deletions
|
|
@ -1404,15 +1404,15 @@ enum sway_container_layout container_current_parent_layout(
|
|||
}
|
||||
|
||||
list_t *container_get_siblings(struct sway_container *container) {
|
||||
if (container->pending.parent) {
|
||||
return container->pending.parent->pending.children;
|
||||
}
|
||||
if (container_is_scratchpad_hidden(container)) {
|
||||
if (container_is_scratchpad_hidden_or_child(container)) {
|
||||
return NULL;
|
||||
}
|
||||
if (!container->pending.workspace) {
|
||||
return NULL;
|
||||
}
|
||||
if (container->pending.parent) {
|
||||
return container->pending.parent->pending.children;
|
||||
}
|
||||
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