cleanup default value on SIGUSR1
git-svn-id: http://tint2.googlecode.com/svn/trunk@421 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -53,8 +53,12 @@ extern int systray_enabled;
|
||||
extern int systray_max_icon_size;
|
||||
|
||||
void init_systray();
|
||||
|
||||
void init_systray_panel(void *p);
|
||||
|
||||
// freed memory and set default values
|
||||
void cleanup_systray();
|
||||
|
||||
void draw_systray(void *obj, cairo_t *c);
|
||||
void resize_systray(void *obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user