]> git.sur5r.net Git - i3/i3/commitdiff
allow floating cons to be reached using 'focus parent'
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Oct 2012 16:50:33 +0000 (18:50 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Oct 2012 16:50:33 +0000 (18:50 +0200)
I suppose this was just an oversight. Let’s see if it causes any issues.

fixes #831

src/tree.c

index d4794e4d7e2f6ce4cf853c9979c6a6fb4710f780..157b6671ad81a33d3f5f81b86aa56e2947aee300 100644 (file)
@@ -398,7 +398,8 @@ void tree_split(Con *con, orientation_t orientation) {
 bool level_up(void) {
     /* We can focus up to the workspace, but not any higher in the tree */
     if ((focused->parent->type != CT_CON &&
-        focused->parent->type != CT_WORKSPACE) ||
+         focused->parent->type != CT_FLOATING_CON &&
+         focused->parent->type != CT_WORKSPACE) ||
         focused->type == CT_WORKSPACE) {
         ELOG("'focus parent': Focus is already on the workspace, cannot go higher than that.\n");
         return false;