- if (win->name_x == NULL) {
- LOG("not rendering decoration, not yet known\n");
+ /* 4: draw the two lines in border color */
+ xcb_draw_line(conn, parent->frame, parent->gc, color->border,
+ con->deco_rect.x, /* x */
+ con->deco_rect.y, /* y */
+ con->deco_rect.x + con->deco_rect.width, /* to_x */
+ con->deco_rect.y); /* to_y */
+ xcb_draw_line(conn, parent->frame, parent->gc, color->border,
+ con->deco_rect.x, /* x */
+ con->deco_rect.y + con->deco_rect.height - 1, /* y */
+ con->deco_rect.x + con->deco_rect.width, /* to_x */
+ con->deco_rect.y + con->deco_rect.height - 1); /* to_y */
+
+ /* 5: draw the title */
+ struct Window *win = con->window;
+ if (win == NULL || win ->name_x == NULL)