]> git.sur5r.net Git - i3/i3/commitdiff
Skip containers which got only one child when looking for the next/previous one to...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 19 Feb 2011 18:50:09 +0000 (19:50 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 19 Feb 2011 18:50:09 +0000 (19:50 +0100)
src/tree.c

index f2b1d90e2a5b2f9c7c46d464581dc487dce9cc39..c741e65ac581f1517eac25b6976d2063bcb5bd17 100644 (file)
@@ -329,7 +329,8 @@ void tree_next(char way, orientation_t orientation) {
     /* 1: get the first parent with the same orientation */
     Con *parent = focused->parent;
     while (focused->type != CT_WORKSPACE &&
-           con_orientation(parent) != orientation) {
+           (con_orientation(parent) != orientation ||
+            con_num_children(parent) == 1)) {
         LOG("need to go one level further up\n");
         /* if the current parent is an output, we are at a workspace
          * and the orientation still does not match */