From: Sascha Kruse Date: Sun, 23 Sep 2012 04:09:34 +0000 (+0200) Subject: draw empty title if WM_NAME is empty X-Git-Tag: 4.4~116 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a7359e449785e20c2ef014cb7ebf4d2a6f3c581;p=i3%2Fi3 draw empty title if WM_NAME is empty fixes #811 --- diff --git a/src/x.c b/src/x.c index 0be83ad0..f1bfeb71 100644 --- a/src/x.c +++ b/src/x.c @@ -481,7 +481,7 @@ void x_draw_decoration(Con *con) { int text_offset_y = (con->deco_rect.height - config.font.height) / 2; struct Window *win = con->window; - if (win == NULL || win->name == NULL) { + if (win == NULL) { /* we have a split container which gets a representation * of its children as title */ @@ -499,6 +499,9 @@ void x_draw_decoration(Con *con) { goto copy_pixmaps; } + if (win->name == NULL) + goto copy_pixmaps; + int indent_level = 0, indent_mult = 0; Con *il_parent = parent;