Rendering fixes for stacking mode

This commit is contained in:
Michael Stapelberg
2010-11-13 22:39:59 +01:00
parent e6d1f181fd
commit 7c6f2dbfc6
5 changed files with 121 additions and 20 deletions

View File

@ -167,8 +167,13 @@ void render_con(Con *con) {
/* in a stacking container, we ensure the focused client is raised */
if (con->layout == L_STACKED) {
Con *foc = TAILQ_FIRST(&(con->focus_head));
if (foc != TAILQ_END(&(con->focus_head)))
if (foc != TAILQ_END(&(con->focus_head))) {
LOG("con %p is stacking, raising %p\n", con, foc);
x_raise_con(foc);
/* by rendering the stacked container again, we handle the case
* that we have a non-leaf-container inside the stack. */
render_con(foc);
}
}
TAILQ_FOREACH(child, &(con->floating_head), floating_windows) {