aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/arrange.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r--sway/tree/arrange.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c
index bdef56ea..da4f7889 100644
--- a/sway/tree/arrange.c
+++ b/sway/tree/arrange.c
@@ -247,6 +247,18 @@ void arrange_children_of(struct sway_container *parent) {
arrange_children_of(child);
}
}
+
+ // If container is a workspace, process floating containers too
+ if (parent->type == C_WORKSPACE) {
+ struct sway_workspace *ws = workspace->sway_workspace;
+ for (int i = 0; i < ws->floating->children->length; ++i) {
+ struct sway_container *child = ws->floating->children->items[i];
+ if (child->type != C_VIEW) {
+ arrange_children_of(child);
+ }
+ }
+ }
+
container_damage_whole(parent);
update_debug_tree();
}