aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-05-21 20:31:46 -0500
committerFurkan Sahin <furkan-dev@proton.me>2025-05-21 20:31:46 -0500
commite4076aaf30c6eb0c6680a5a467514abb5047da6f (patch)
treecc7e380cc44465ab87ec22448af7a62be104223e
parent8cdd85dfb207045cf0e00af96e59946879f5b305 (diff)
transaction: fix floating fullscreen containers
7462d62 introduced a regression where fullscreening a child of a floating container would result in a black screen. This is because the order of 'arrange_fullscreen' and 'arrange_worksplace_floating' was swapped causing the fullscreen container's scene to get reparented after it was parented in the fullscreen layer. Fixes #8729
-rw-r--r--sway/desktop/transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 7ec9b68d..325a3022 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -596,6 +596,7 @@ static void arrange_output(struct sway_output *output, int width, int height) {
wlr_scene_rect_set_size(output->fullscreen_background, width, height);
+ arrange_workspace_floating(child);
arrange_fullscreen(child->layers.fullscreen, fs, child,
width, height);
} else {
@@ -608,9 +609,8 @@ static void arrange_output(struct sway_output *output, int width, int height) {
arrange_workspace_tiling(child,
area->width - gaps->left - gaps->right,
area->height - gaps->top - gaps->bottom);
+ arrange_workspace_floating(child);
}
-
- arrange_workspace_floating(child);
} else {
wlr_scene_node_set_enabled(&child->layers.tiling->node, false);
wlr_scene_node_set_enabled(&child->layers.fullscreen->node, false);