From: Michael Stapelberg Date: Fri, 13 May 2011 17:53:19 +0000 (+0200) Subject: Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON X-Git-Tag: tree-pr3~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44c2555e670f7a96038dca62bdb9850daf06dd99;p=i3%2Fi3 Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON makes t/35-floating-focus.t pass again --- 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; }