Rendering fixes for stacking mode

This commit is contained in:
Michael Stapelberg
2010-11-13 22:39:59 +01:00
parent e6d1f181fd
commit 7c6f2dbfc6
5 changed files with 121 additions and 20 deletions

View File

@ -233,7 +233,7 @@ void tree_split(Con *con, orientation_t orientation) {
/* if we are in a container whose parent contains only one
* child and has the same orientation like we are trying to
* set, this operation is a no-op to not confuse the user */
if (parent->orientation == orientation &&
if (con_orientation(parent) == orientation &&
TAILQ_NEXT(con, nodes) == TAILQ_END(&(parent->nodes_head))) {
DLOG("Not splitting the same way again\n");
return;
@ -353,6 +353,7 @@ void tree_next(char way, orientation_t orientation) {
while (!TAILQ_EMPTY(&(next->focus_head)))
next = TAILQ_FIRST(&(next->focus_head));
DLOG("focusing %p\n", next);
con_focus(next);
}