summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-05-06 17:36:16 -0500
committerFurkan Sahin <furkan-dev@proton.me>2025-05-06 17:36:16 -0500
commite39d5c39485d1b1224e8be2ba3688af6b07d7ca5 (patch)
treee6cd9d4bb5976bfc4b0aa86f5a8e9429b56dccc6
parent36ca75f4dae4805a61e3d26a1d586b13e29343f3 (diff)
transaction: fix size of child container decorations in stacking layouts
Before this commit stacking containers with more than one child sized the active container's decorations as if there was only one titlebar. Commit fa6115f introduced the local variable 'net_height' but incorrectly calculated it for stacking containers. Fixes #8686.
-rw-r--r--sway/desktop/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 74929f8c..f8bc64b5 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -343,7 +343,7 @@ static void arrange_children(enum sway_container_layout layout, list_t *children
wlr_scene_node_set_position(&child->scene_tree->node, 0, title_height);
wlr_scene_node_reparent(&child->scene_tree->node, content);
- int net_height = height - title_bar_height;
+ int net_height = height - title_height;
if (activated && width > 0 && net_height > 0) {
arrange_container(child, width, net_height, title_bar_height == 0, 0);
} else {