draw empty title if WM_NAME is empty

fixes #811
This commit is contained in:
Sascha Kruse 2012-09-23 06:09:34 +02:00 committed by Michael Stapelberg
parent 1806c9802e
commit 2a7359e449
1 changed files with 4 additions and 1 deletions

View File

@ -481,7 +481,7 @@ void x_draw_decoration(Con *con) {
int text_offset_y = (con->deco_rect.height - config.font.height) / 2; int text_offset_y = (con->deco_rect.height - config.font.height) / 2;
struct Window *win = con->window; struct Window *win = con->window;
if (win == NULL || win->name == NULL) { if (win == NULL) {
/* we have a split container which gets a representation /* we have a split container which gets a representation
* of its children as title * of its children as title
*/ */
@ -499,6 +499,9 @@ void x_draw_decoration(Con *con) {
goto copy_pixmaps; goto copy_pixmaps;
} }
if (win->name == NULL)
goto copy_pixmaps;
int indent_level = 0, int indent_level = 0,
indent_mult = 0; indent_mult = 0;
Con *il_parent = parent; Con *il_parent = parent;