]> Dogcows Code - chaz/tint2/blobdiff - src/systray/systraybar.c
cleanup default value on SIGUSR1
[chaz/tint2] / src / systray / systraybar.c
index 411f9121467d203bfe67535e9c8c2d7314d3ea24..97195544069650b52a7845d3f12c24061b618dc6 100644 (file)
@@ -48,7 +48,7 @@ Window net_sel_win = None;
 Systraybar systray;
 int refresh_systray;
 int systray_enabled;
-int systray_max_icon_size = 0;
+int systray_max_icon_size;
 
 // background pixmap if we render ourselves the icons
 static Pixmap render_background = 0;
@@ -95,9 +95,13 @@ void init_systray_panel(void *p)
 void cleanup_systray()
 {
        systray_enabled = 0;
+       systray_max_icon_size = 0;
        systray.area.on_screen = 0;
        free_area(&systray.area);
-       if (render_background) XFreePixmap(server.dsp, render_background);
+       if (render_background) {
+               XFreePixmap(server.dsp, render_background);
+               render_background = 0;
+       }
 }
 
 
This page took 0.02059 seconds and 4 git commands to generate.