aboutsummaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2020-11-01 23:43:07 -0700
committerLibravatar Tudor Brindus <me@tbrindus.ca>2020-12-20 00:58:42 -0500
commit8eb0c54693e44e7c6126ce35045e34ad0f4d4607 (patch)
treef70faa5d8d809591909881e992323d5439d7f21d /include/log.h
parentcommands/move: rework container_move_in_direction (diff)
downloadsway-8eb0c54693e44e7c6126ce35045e34ad0f4d4607.tar.gz
sway-8eb0c54693e44e7c6126ce35045e34ad0f4d4607.tar.zst
sway-8eb0c54693e44e7c6126ce35045e34ad0f4d4607.zip
introduce workspace_squash
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.
Diffstat (limited to 'include/log.h')
0 files changed, 0 insertions, 0 deletions