From f089d43a46367fca4273a6f771840518a9d95e55 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 25 Jul 2012 22:57:51 +0200 Subject: [PATCH] Don't sync background color with foreground one. --- bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar.c b/bar.c index 3bf6afd..2e07f5b 100644 --- a/bar.c +++ b/bar.c @@ -46,7 +46,6 @@ xcb_set_bg (int i) { xcb_change_gc (c, draw_gc , XCB_GC_BACKGROUND, (const unsigned []){ palette[i] }); xcb_change_gc (c, clear_gc , XCB_GC_FOREGROUND, (const unsigned []){ palette[i] }); - xcb_change_gc (c, underl_gc, XCB_GC_FOREGROUND, (const unsigned []){ palette[i] }); } void @@ -83,6 +82,7 @@ draw_char (int x, int align, wchar_t ch) sel_font->table[ch - sel_font->char_min].character_width : 0; + if (ch_width == 0) return 0;