aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-12-19 10:30:21 +0100
committerLibravatar Ronan Pigott <ronan@rjp.ie>2023-01-03 11:01:02 -0700
commit9e15e2fd4f2ab9c49e123daada662cd5e6098b81 (patch)
tree809a4e5e681bc5062a0b1b0f39603306372996e4 /sway/tree/container.c
parentman: fix typo in output disable docs (diff)
downloadsway-9e15e2fd4f2ab9c49e123daada662cd5e6098b81.tar.gz
sway-9e15e2fd4f2ab9c49e123daada662cd5e6098b81.tar.zst
sway-9e15e2fd4f2ab9c49e123daada662cd5e6098b81.zip
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
Diffstat (limited to 'sway/tree/container.c')
-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) {
1407 if (container->pending.parent) { 1407 if (container->pending.parent) {
1408 return container->pending.parent->pending.children; 1408 return container->pending.parent->pending.children;
1409 } 1409 }
1410 if (container_is_scratchpad_hidden(container)) {
1411 return NULL;
1412 }
1413 if (!container->pending.workspace) { 1410 if (!container->pending.workspace) {
1414 return NULL; 1411 return NULL;
1415 } 1412 }