Bugfix: when no windows to focus, return the workspace instead of NULL
This commit is contained in:
parent
5ebb3b4832
commit
576de246d8
|
@ -439,8 +439,8 @@ Con *con_next_focused(Con *con) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (next == TAILQ_END(&(ws->focus_head))) {
|
if (next == TAILQ_END(&(ws->focus_head))) {
|
||||||
DLOG("Focus list empty, returning NULL\n");
|
DLOG("Focus list empty, returning ws\n");
|
||||||
next = NULL;
|
next = ws;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return next;
|
return next;
|
||||||
|
|
Loading…
Reference in New Issue