Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON

makes t/35-floating-focus.t pass again
This commit is contained in:
Michael Stapelberg 2011-05-13 19:53:19 +02:00
parent 5eef824495
commit 44c2555e67
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}