From 49add4f3e4d275e6767073df1ef16764fb8f5c2a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 17 Jul 2010 01:56:16 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20go=20further=20when=20?= =?utf8?q?switching=20focus=20on=20a=20CT=5FWORKSPACE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tree.c b/src/tree.c index cf7f60dd..491548da 100644 --- a/src/tree.c +++ b/src/tree.c @@ -332,7 +332,8 @@ void tree_render() { void tree_next(char way, orientation_t orientation) { /* 1: get the first parent with the same orientation */ Con *parent = focused->parent; - while (con_orientation(parent) != orientation) { + while (focused->type != CT_WORKSPACE && + con_orientation(parent) != orientation) { 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 */ -- 2.39.5