]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: when no windows to focus, return the workspace instead of NULL
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 20 Nov 2010 17:38:24 +0000 (18:38 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 20 Nov 2010 17:38:24 +0000 (18:38 +0100)
src/con.c

index 4839526c761aa75c090e0580a6fc09443d599f1e..1686d84f3ae0718b39b9b555b42df12c706e0471 100644 (file)
--- 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;