aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex-huff <alexhuff@bakahuff.com>2025-05-04 17:41:44 -0500
committerSimon Ser <contact@emersion.fr>2025-05-18 23:55:44 +0200
commit05ffe545ea49639299f1e6793f6d040dd6b348b4 (patch)
tree993c7fb22c4386ebeac0b4e2aa125974cfc61d01
parent6db0dd5abf56257029d82c437a9dde18d09d48ac (diff)
transaction: Ensure all tabs are visible in tabbed mode
Before this commit when a child of a tabbed or stacking container was taken out of fullscreen and a different sibling was focused in the same transaction, the titlebar of the previously fullscreen container would remain hidden. This commit makes sure that scene tree for decorations is enabled for all containers within a tabbed or stacking container when it is arranged. (cherry picked from commit 4ab411cab0f441994fd41ef8ac80ef849bfab271)
-rw-r--r--sway/desktop/transaction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 0b3cbfb4..781e0008 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -309,6 +309,7 @@ static void arrange_children(enum sway_container_layout layout, list_t *children
arrange_title_bar(child, title_offset, -title_bar_height,
next_title_offset - title_offset, title_bar_height);
wlr_scene_node_set_enabled(&child->border.tree->node, activated);
+ wlr_scene_node_set_enabled(&child->scene_tree->node, true);
wlr_scene_node_set_position(&child->scene_tree->node, 0, title_bar_height);
wlr_scene_node_reparent(&child->scene_tree->node, content);
@@ -338,6 +339,7 @@ static void arrange_children(enum sway_container_layout layout, list_t *children
arrange_title_bar(child, 0, y - title_height, width, title_bar_height);
wlr_scene_node_set_enabled(&child->border.tree->node, activated);
+ wlr_scene_node_set_enabled(&child->scene_tree->node, true);
wlr_scene_node_set_position(&child->scene_tree->node, 0, title_height);
wlr_scene_node_reparent(&child->scene_tree->node, content);