commit 8378c560c15906d365a49095deba96d2b560da47 parent 82227d6103940bade22d7fa1e63256228df37b9e Author: Stephane Fontaine <stefont@gmail.com> Date: Sat, 17 Jan 2026 16:12:24 +0400 call disable container in arrange_root Diffstat:
| M | sway/desktop/transaction.c | | | 10 | +--------- |
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c @@ -648,15 +648,7 @@ static void arrange_root(struct sway_root *root) { for (int i = 0; i < root->scratchpad->length; i++) { struct sway_container *con = root->scratchpad->items[i]; - // When a container is moved to a scratchpad, it's possible that it - // was moved into a floating container as part of the same transaction. - // In this case, we need to make sure we reparent all the container's - // children so that disabling the container will disable all descendants. - if (!con->view) for (int ii = 0; ii < con->current.children->length; ii++) { - struct sway_container *child = con->current.children->items[ii]; - wlr_scene_node_reparent(&child->scene_tree->node, con->content_tree); - } - + disable_container(con); wlr_scene_node_set_enabled(&con->scene_tree->node, false); }