From 23b62f621dc3f3ccfe57794f67fa16b530f3e694 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Thu, 4 Nov 2010 13:46:50 +0100 Subject: [PATCH] Add support for bar_fg and bar_bg --- i3bar/src/xcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index bf679b5d..326ca2ad 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -520,7 +520,7 @@ void init_xcb(char *fontname) { uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT; - uint32_t vals[3] = { xcb_screen->white_pixel, xcb_screen->black_pixel, xcb_font }; + uint32_t vals[3] = { colors.bar_fg, colors.bar_bg, xcb_font }; xcb_void_cookie_t sl_ctx_cookie = xcb_create_gc_checked(xcb_connection, statusline_ctx, @@ -652,7 +652,7 @@ void reconfig_windows() { walk->buffer = xcb_generate_id(xcb_connection); mask = XCB_CW_BACK_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK; /* Black background */ - values[0] = xcb_screen->black_pixel; + values[0] = colors.bar_bg; /* If hide_on_modifier is set, i3 is not supposed to manage our bar-windows */ values[1] = config.hide_on_modifier; /* The events we want to receive */ -- 2.39.5