mirror of
https://github.com/swaywm/sway.git
synced 2026-02-11 04:28:15 -05:00
workspace_squash is container_flatten in the reverse
direction. Instead of eliminating redundant splits that are
parents of the target container, it eliminates pairs of
redundant H/V splits that are children of the workspace.
Splits are redundant if a con and its grandchild have the
same layout, and the immediate child has the opposite split.
For example, layouts are transformed like:
H[V[H[app1 app2]] app3] -> H[app1 app2 app3]
i3 uses this operation to simplify the tree after moving
heavily nested containers to a higher level in the tree via
an orthogonal move.
|
||
|---|---|---|
| .. | ||
| desktop | ||
| input | ||
| tree | ||
| commands.h | ||
| config.h | ||
| criteria.h | ||
| decoration.h | ||
| desktop.h | ||
| ipc-json.h | ||
| ipc-server.h | ||
| layers.h | ||
| output.h | ||
| server.h | ||
| surface.h | ||
| swaynag.h | ||
| xdg_decoration.h | ||
| xwayland.h | ||