From 576de246d81856e831391062e63bbfc47fd7e481 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 20 Nov 2010 18:38:24 +0100 Subject: [PATCH] Bugfix: when no windows to focus, return the workspace instead of NULL --- src/con.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5