mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
commands/move: squash workspace after directional con move
This commit is contained in:
parent
8eb0c54693
commit
432c4df6e7
|
@ -133,6 +133,7 @@ static void container_move_to_container_from_direction(
|
||||||
}
|
}
|
||||||
container->width = container->height = 0;
|
container->width = container->height = 0;
|
||||||
container->width_fraction = container->height_fraction = 0;
|
container->width_fraction = container->height_fraction = 0;
|
||||||
|
workspace_squash(destination->workspace);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -145,6 +146,7 @@ static void container_move_to_container_from_direction(
|
||||||
container_insert_child(destination, container, index);
|
container_insert_child(destination, container, index);
|
||||||
container->width = container->height = 0;
|
container->width = container->height = 0;
|
||||||
container->width_fraction = container->height_fraction = 0;
|
container->width_fraction = container->height_fraction = 0;
|
||||||
|
workspace_squash(destination->workspace);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -396,6 +398,7 @@ static bool container_move_in_direction(struct sway_container *container,
|
||||||
if (old_parent) {
|
if (old_parent) {
|
||||||
container_reap_empty(old_parent);
|
container_reap_empty(old_parent);
|
||||||
}
|
}
|
||||||
|
workspace_squash(container->workspace);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue