From: David Hill Date: Tue, 17 Jul 2012 06:40:05 +0000 (-0400) Subject: make search_win use the same font as the bar X-Git-Tag: SPECTRWM_1_2_0~67 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/b1b60af57d5187e8382fc3078b5157b5df9b00ab make search_win use the same font as the bar --- diff --git a/spectrwm.c b/spectrwm.c index 54bb1f2..4699392 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -3840,7 +3840,7 @@ search_win(struct swm_region *r, union arg *args) struct ws_win *win = NULL; struct search_window *sw = NULL; xcb_window_t w; - uint32_t gcv[3], wa[2]; + uint32_t gcv[4], wa[2]; int i, width; char s[8]; FILE *lfile; @@ -3916,9 +3916,11 @@ search_win(struct swm_region *r, union arg *args) sw->gc = xcb_generate_id(conn); gcv[0] = r->s->c[SWM_S_COLOR_BAR].color; gcv[1] = r->s->c[SWM_S_COLOR_FOCUS].color; - gcv[2] = 0; + gcv[2] = bar_fs; + gcv[3] = 0; xcb_create_gc(conn, sw->gc, w, XCB_GC_FOREGROUND | - XCB_GC_BACKGROUND | XCB_GC_GRAPHICS_EXPOSURES, gcv); + XCB_GC_BACKGROUND | XCB_GC_FONT | XCB_GC_GRAPHICS_EXPOSURES, + gcv); map_window_raised(w); xcb_image_text_8(conn, len, w, sw->gc, 2, bar_fs_height, s);