Correctly render containers when a split container is focused

This commit is contained in:
Michael Stapelberg
2011-08-26 03:17:41 +02:00
parent 194c220508
commit 7fca7f029f
3 changed files with 19 additions and 1 deletions

View File

@ -290,7 +290,7 @@ void x_draw_decoration(Con *con) {
/* find out which colors to use */
if (con->urgent)
p->color = &config.client.urgent;
else if (con == focused)
else if (con == focused || con_inside_focused(con))
p->color = &config.client.focused;
else if (con == TAILQ_FIRST(&(parent->focus_head)))
p->color = &config.client.focused_inactive;