Support for custom bg colors for clients.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2010-09-12 02:54:55 -03:00
committed by Michael Stapelberg
parent 5ed0c0a042
commit fa3ad8be10
6 changed files with 20 additions and 7 deletions

View File

@ -817,8 +817,8 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *
{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"));
/* Draw the background */
xcb_change_gc_single(conn, client->titlegc, XCB_GC_FOREGROUND, config.client.background);
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);