X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=97195544069650b52a7845d3f12c24061b618dc6;hb=0caca7524827e38c9d076f33dc66416d189184e8;hp=411f9121467d203bfe67535e9c8c2d7314d3ea24;hpb=43b8ed2d151faccd87735a6a6afb950584392937;p=chaz%2Ftint2 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 411f912..9719554 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -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; + } }