Bugfix: Don’t go further when switching focus on a CT_WORKSPACE
This commit is contained in:
parent
69e5c0f6ce
commit
49add4f3e4
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user