fix a rendering problem for split cons inside tabbed cons (Thanks julien)

This fixes #280.
This commit is contained in:
Michael Stapelberg 2011-02-02 17:56:29 +01:00
parent 44ab15abf0
commit 07381ccb7b
1 changed files with 4 additions and 2 deletions

View File

@ -233,12 +233,14 @@ void x_window_kill(xcb_window_t window) {
void x_draw_decoration(Con *con) {
/* This code needs to run for:
* leaf containers
* non-leaf containers which are in a stacking container
* non-leaf containers which are in a stacked/tabbed container
*
* It does not need to run for:
* floating containers (they dont have a decoration)
*/
if ((!con_is_leaf(con) && con->parent->layout != L_STACKED) ||
if ((!con_is_leaf(con) &&
con->parent->layout != L_STACKED &&
con->parent->layout != L_TABBED) ||
con->type == CT_FLOATING_CON)
return;
DLOG("decoration should be rendered for con %p\n", con);