- return 1;
-
-#if 0
- else {
- uint32_t background_color;
- if (client->urgent)
- background_color = config.client.urgent.background;
- /* Distinguish if the window is currently focused… */
- else if (CUR_CELL != NULL && CUR_CELL->currently_focused == client)
- background_color = config.client.focused.background;
- /* …or if it is the focused window in a not focused container */
- else background_color = config.client.focused_inactive.background;
-
- /* Set foreground color to current focused color, line width to 2 */
- uint32_t values[] = {background_color, 2};
- xcb_change_gc(conn, client->titlegc, XCB_GC_FOREGROUND | XCB_GC_LINE_WIDTH, values);
-
- /* Draw the border, the ±1 is for line width = 2 */
- xcb_point_t points[] = {{1, 0}, /* left upper edge */
- {1, client->rect.height-1}, /* left bottom edge */
- {client->rect.width-1, client->rect.height-1}, /* right bottom edge */
- {client->rect.width-1, 0}}; /* right upper edge */
- xcb_poly_line(conn, XCB_COORD_MODE_ORIGIN, client->frame, client->titlegc, 4, points);
-
- /* Draw a black background */
- xcb_change_gc_single(conn, client->titlegc, XCB_GC_FOREGROUND, get_colorpixel(conn, "#000000"));
- if (client->titlebar_position == TITLEBAR_OFF && !client->borderless) {
- xcb_rectangle_t crect = {1, 0, client->rect.width - (1 + 1), client->rect.height - 1};
- xcb_poly_fill_rectangle(conn, client->frame, client->titlegc, 1, &crect);
- } else {
- xcb_rectangle_t crect = {2, 0, client->rect.width - (2 + 2), client->rect.height - 2};
- xcb_poly_fill_rectangle(conn, client->frame, client->titlegc, 1, &crect);
- }
+ /* We also need to render the decorations of other Cons nearby the Con
+ * itself to not get overlapping decorations */
+ TAILQ_FOREACH(con, &(parent->parent->nodes_head), nodes) {
+ DLOG("expose for con %p / %s\n", con, con->name);
+ if (con->window)
+ x_draw_decoration(con);