mirror of
https://github.com/swaywm/sway.git
synced 2025-10-08 21:25:58 +00:00
Revert "sway/commands/layout: flatten parent once"
This reverts commit f50e307227
.
The commit broke all mixed layouts, regardless of orientation and rotation.
For example:
[window][stacked or tabbed windows]
This was my main workflow stacking method, by having my editor and a lot
of terminals off to the side.
This commit is contained in:
parent
d9e615c507
commit
a2bd5b4470
1 changed files with 0 additions and 9 deletions
|
@ -134,15 +134,6 @@ struct cmd_results *cmd_layout(int argc, char **argv) {
|
||||||
// Operate on parent container, like i3.
|
// Operate on parent container, like i3.
|
||||||
if (container) {
|
if (container) {
|
||||||
container = container->pending.parent;
|
container = container->pending.parent;
|
||||||
// If parent has only a singe child operate on its parent and
|
|
||||||
// flatten once, like i3
|
|
||||||
if (container && container->pending.children->length == 1) {
|
|
||||||
struct sway_container *child = container->pending.children->items[0];
|
|
||||||
struct sway_container *parent = container->pending.parent;
|
|
||||||
container_replace(container, child);
|
|
||||||
container_begin_destroy(container);
|
|
||||||
container = parent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We could be working with a container OR a workspace. These are different
|
// We could be working with a container OR a workspace. These are different
|
||||||
|
|
Loading…
Add table
Reference in a new issue