From: Michael Stapelberg Date: Thu, 4 Oct 2012 16:50:33 +0000 (+0200) Subject: allow floating cons to be reached using 'focus parent' X-Git-Tag: 4.4~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6e1b75b1890f3ffb5280785fe9f572dc9a22db9;p=i3%2Fi3 allow floating cons to be reached using 'focus parent' I suppose this was just an oversight. Let’s see if it causes any issues. fixes #831 --- diff --git a/src/tree.c b/src/tree.c index d4794e4d..157b6671 100644 --- a/src/tree.c +++ b/src/tree.c @@ -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;