aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-19 10:30:21 +0100
committerRonan Pigott <ronan@rjp.ie>2023-01-03 11:01:02 -0700
commit9e15e2fd4f2ab9c49e123daada662cd5e6098b81 (patch)
tree809a4e5e681bc5062a0b1b0f39603306372996e4
parent0c23b0ec339ae6b294539ce47addc9c4b523a438 (diff)
tree/container: drop unnecessary check in container_get_siblings()
The check for container->pending.workspace already covers this. References: https://github.com/swaywm/sway/pull/7315#issuecomment-1341716204
-rw-r--r--sway/tree/container.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index b86a9925..c60c8f8f 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1407,9 +1407,6 @@ 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)) {
- return NULL;
- }
if (!container->pending.workspace) {
return NULL;
}