Skip to content

Commit

Permalink
sway/tree/container: check if container is scratchpad hidden first be…
Browse files Browse the repository at this point in the history
…fore getting siblings
  • Loading branch information
bl4ckb0ne committed Dec 7, 2022
1 parent 6b3245a commit 10e060e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sway/tree/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 10e060e

Please sign in to comment.