Fix reload problem with ARGB.
authorBrenden Matthews <brenden@diddyinc.com>
Sat, 2 Jan 2010 20:12:21 +0000 (12:12 -0800)
committerBrenden Matthews <brenden@diddyinc.com>
Sat, 2 Jan 2010 20:12:21 +0000 (12:12 -0800)
src/x11.c

index 6f29d4f..62310a6 100644 (file)
--- 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,