Bugfix: don’t flatten tabbed/stacked containers

fixes #1053
This commit is contained in:
Michael Stapelberg
2013-09-01 13:35:04 +02:00
parent a68a911a30
commit 2481b9dcd7
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;