mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix re-tiling for floating containers
When a floating container is tiled (e.g.: 'floating toggle' or 'floating disable'), it should be placed after/below the inactive focused container from the tiling layout.
This commit is contained in:
parent
73b7c5cc05
commit
5323551a7f
1 changed files with 1 additions and 4 deletions
|
@ -676,11 +676,8 @@ void container_set_floating(struct sway_container *container, bool enable) {
|
||||||
container_detach(container);
|
container_detach(container);
|
||||||
struct sway_container *reference =
|
struct sway_container *reference =
|
||||||
seat_get_focus_inactive_tiling(seat, workspace);
|
seat_get_focus_inactive_tiling(seat, workspace);
|
||||||
if (reference && reference->view) {
|
|
||||||
reference = reference->parent;
|
|
||||||
}
|
|
||||||
if (reference) {
|
if (reference) {
|
||||||
container_add_child(reference, container);
|
container_add_sibling(reference, container, 1);
|
||||||
container->width = reference->width;
|
container->width = reference->width;
|
||||||
container->height = reference->height;
|
container->height = reference->height;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue