From 6101ca3ca34867e67d79c2fbadb53a3cd46c3fc2 Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Tue, 10 Feb 2026 01:42:36 -0500 Subject: [PATCH] fix: container state stacked and tabbed position and size --- sway/tree/arrange.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index faf54d02a..193a49d9e 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -188,7 +188,7 @@ static void apply_tabbed_layout(list_t *children, struct wlr_box *parent) { } for (int i = 0; i < children->length; ++i) { struct sway_container *child = children->items[i]; - int parent_offset = child->view ? 0 : container_titlebar_height(); + int parent_offset = child->view ? container_titlebar_height() : 0; child->pending.x = parent->x; child->pending.y = parent->y + parent_offset; child->pending.width = parent->width; @@ -202,8 +202,8 @@ static void apply_stacked_layout(list_t *children, struct wlr_box *parent) { } for (int i = 0; i < children->length; ++i) { struct sway_container *child = children->items[i]; - int parent_offset = child->view ? 0 : - container_titlebar_height() * children->length; + int parent_offset = child->view ? + container_titlebar_height() * children->length : 0; child->pending.x = parent->x; child->pending.y = parent->y + parent_offset; child->pending.width = parent->width;