From: Michael Stapelberg Date: Sat, 20 Nov 2010 17:38:24 +0000 (+0100) Subject: Bugfix: when no windows to focus, return the workspace instead of NULL X-Git-Tag: tree-pr1~86 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=576de246d81856e831391062e63bbfc47fd7e481;p=i3%2Fi3 Bugfix: when no windows to focus, return the workspace instead of NULL --- diff --git a/src/con.c b/src/con.c index 4839526c..1686d84f 100644 --- a/src/con.c +++ b/src/con.c @@ -439,8 +439,8 @@ Con *con_next_focused(Con *con) { } } if (next == TAILQ_END(&(ws->focus_head))) { - DLOG("Focus list empty, returning NULL\n"); - next = NULL; + DLOG("Focus list empty, returning ws\n"); + next = ws; } } return next;