Support for custom bg colors for clients.
This commit is contained in:
committed by
Michael Stapelberg
parent
5ed0c0a042
commit
fa3ad8be10
@ -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);
|
||||
|
Reference in New Issue
Block a user