Bugfix: Transfer 'percent' factor when splitting, add testcase for resizing

This commit is contained in:
Michael Stapelberg
2010-11-29 11:24:12 +01:00
parent a61480db99
commit b0068de3d7
2 changed files with 54 additions and 1 deletions

View File

@ -267,7 +267,11 @@ void tree_split(Con *con, orientation_t orientation) {
new->parent = parent;
new->orientation = orientation;
/* 3: add it as a child to the new Con */
/* 3: swap 'percent' (resize factor) */
new->percent = con->percent;
con->percent = 0.0;
/* 4: add it as a child to the new Con */
con_attach(con, new, false);
}