Bugfix: when no windows to focus, return the workspace instead of NULL

This commit is contained in:
Michael Stapelberg 2010-11-20 18:38:24 +01:00
parent 5ebb3b4832
commit 576de246d8
1 changed files with 2 additions and 2 deletions

View File

@ -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;