From: Michael Stapelberg Date: Fri, 16 Jul 2010 23:56:16 +0000 (+0200) Subject: Bugfix: Don’t go further when switching focus on a CT_WORKSPACE X-Git-Tag: tree-pr1~151 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49add4f3e4d275e6767073df1ef16764fb8f5c2a;p=i3%2Fi3 Bugfix: Don’t go further when switching focus on a CT_WORKSPACE --- 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 */