From 9057489d92573e201bef8519f2f1bb7fd0d3ced8 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 21 Apr 2009 18:04:53 +0200 Subject: [PATCH] Stipple: Fix stipple color when it is #000000 --- src/barwin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/barwin.c b/src/barwin.c index b543491..e086700 100644 --- a/src/barwin.c +++ b/src/barwin.c @@ -97,6 +97,7 @@ barwin_create(Window parent, bw->border.light = color_enlight(bg); bw->border.dark = SHADC; bw->stipple = stipple; + bw->stipple_color = -1; return bw; } @@ -265,7 +266,7 @@ barwin_refresh_color(BarWindow *bw) if(bw->stipple) { - XSetForeground(dpy, gc_stipple, ((bw->stipple_color) ? bw->stipple_color : getcolor(bw->fg))); + XSetForeground(dpy, gc_stipple, ((bw->stipple_color != -1) ? bw->stipple_color : getcolor(bw->fg))); XFillRectangle(dpy, bw->dr, gc_stipple, 3, 2, bw->geo.width - 6, bw->geo.height - 4); }