Implement tree flattening to automatically solve situations of redundant chains of split containers

This should fix the move problems. See comment of tree_flatten() for a little
example.
This commit is contained in:
Michael Stapelberg
2011-01-07 22:21:41 +01:00
parent 228b5c51ff
commit 115462f103
4 changed files with 146 additions and 0 deletions

View File

@ -669,6 +669,8 @@ void con_set_layout(Con *con, int layout) {
if (old_focused)
con_focus(old_focused);
tree_flatten(croot);
return;
}