Bugfix: Focus workspace after closing one of multiple dock clients (+testcase) (Thanks mseed)

This commit is contained in:
Michael Stapelberg
2011-03-04 15:21:18 +01:00
parent f6a21994bf
commit 0a2ee1d2aa
2 changed files with 78 additions and 0 deletions

View File

@ -617,6 +617,12 @@ Con *con_next_focused(Con *con) {
return next;
}
/* dock clients cannot be focused, so we focus the workspace instead */
if (con->parent->type == CT_DOCKAREA) {
DLOG("selecting workspace for dock client\n");
return con_descend_focused(output_get_content(con->parent->parent));
}
/* try to focus the next container on the same level as this one */
next = TAILQ_NEXT(con, focused);