From 137c90070198200ce8cb1c6e66781180bf79750b Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 2 Jan 2010 12:12:21 -0800 Subject: [PATCH] Fix reload problem with ARGB. --- src/x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x11.c b/src/x11.c index 6f29d4f..62310a6 100644 --- a/src/x11.c +++ b/src/x11.c @@ -177,11 +177,11 @@ static Window find_desktop_window(Window *p_root, Window *p_desktop) return win; } +static int colour_set = -1; /* if no argb visual is configured sets background to ParentRelative for the Window and all parents, else real transparency is used */ void set_transparent_background(Window win, int alpha) { - static int colour_set = -1; (void)alpha; /* disable warnings when unused */ #ifdef USE_ARGB @@ -258,6 +258,7 @@ void destroy_window(void) XFreeGC(display, window.gc); } memset(&window, 0, sizeof(struct conky_window)); + colour_set = -1; } void init_window(int own_window, int w, int h, int set_trans, int back_colour, -- 1.7.9.5