]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 13 May 2011 17:53:19 +0000 (19:53 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 13 May 2011 17:53:19 +0000 (19:53 +0200)
makes t/35-floating-focus.t pass again

src/con.c

index 1adfcf358397a0e7ca0a6379179636a1890841be..4bfd5b0787576f11f0116cc1e39db872d85ea704 100644 (file)
--- 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;
     }