Merge branch 'master' into next

This commit is contained in:
Michael Stapelberg
2013-09-01 13:35:19 +02:00
2 changed files with 36 additions and 0 deletions

View File

@ -702,6 +702,8 @@ void tree_flatten(Con *con) {
* the cons parent to be redundant */
if (!con_is_split(con) ||
!con_is_split(child) ||
(con->layout != L_SPLITH && con->layout != L_SPLITV) ||
(child->layout != L_SPLITH && child->layout != L_SPLITV) ||
con_orientation(con) == con_orientation(child) ||
con_orientation(child) != con_orientation(parent))
goto recurse;