From a6e1b75b1890f3ffb5280785fe9f572dc9a22db9 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 4 Oct 2012 18:50:33 +0200 Subject: [PATCH] allow floating cons to be reached using 'focus parent' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I suppose this was just an oversight. Let’s see if it causes any issues. fixes #831 --- src/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5