void init_systray_panel(void *p)
{
- Panel *panel =(Panel*)p;
-
systray.area.parent = p;
systray.area.panel = p;
count++;
}
if (count == 0)
- systray.area.on_screen = 0;
+ hide(&systray.area);
else
- systray.area.on_screen = 1;
+ show(&systray.area);
refresh_systray = 0;
}
traywin->damage = 0;
if (systray.area.on_screen == 0)
- systray.area.on_screen = 1;
+ show(&systray.area);
if (systray.sort == 3)
systray.list_icons = g_slist_prepend(systray.list_icons, traywin);
if (!((TrayWindow*)l->data)->hide)
count++;
}
- if (count == 0) {
- systray.area.on_screen = 0;
- systray.area.width = 0;
- }
+ if (count == 0)
+ hide(&systray.area);
+
// changed in systray
systray.area.resize = 1;
panel_refresh = 1;