mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
move: fix broken titlebar when moving child to new workspace
Before this commit, when moving a non-leaf child of a tabbed or stacking
container to a new workspace, the child would be detached from the
parent container and the grandchildren would be sent to the new
workspace but the child itself wouldn't be destroyed causing the
titlebar to still be rendered as part of the parent container.
Fixes #8648.
(cherry picked from commit 8d3a52aa30)
This commit is contained in:
parent
557d8eaf6d
commit
c70ac15525
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ static void container_move_to_workspace(struct sway_container *container,
|
|||
container_detach(container);
|
||||
if (workspace_is_empty(workspace) && container->pending.children) {
|
||||
workspace_unwrap_children(workspace, container);
|
||||
container_reap_empty(container);
|
||||
} else {
|
||||
container->pending.width = container->pending.height = 0;
|
||||
container->width_fraction = container->height_fraction = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue