From 44c2555e670f7a96038dca62bdb9850daf06dd99 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 13 May 2011 19:53:19 +0200 Subject: [PATCH] Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON makes t/35-floating-focus.t pass again --- src/con.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/con.c b/src/con.c index 1adfcf35..4bfd5b07 100644 --- a/src/con.c +++ b/src/con.c @@ -642,6 +642,10 @@ Con *con_next_focused(Con *con) { DLOG("Focus list empty, returning ws\n"); next = ws; } + } else { + /* Instead of returning the next CT_FLOATING_CON, we descend it to + * get an actual window to focus. */ + next = con_descend_focused(next); } return next; } -- 2.39.5