void cleanup_battery()
{
- printf("*** cleanup_battery()\n");
if (bat1_font_desc) pango_font_description_free(bat1_font_desc);
if (bat2_font_desc) pango_font_description_free(bat2_font_desc);
if (path_energy_now) g_free(path_energy_now);
void cleanup_clock()
{
-printf("*** cleanup_clock()\n");
if (time1_font_desc) pango_font_description_free(time1_font_desc);
if (time2_font_desc) pango_font_description_free(time2_font_desc);
if (time1_format) g_free(time1_format);
Taskbar *tskbar;
int i, j;
-printf("*** cleanup_taskbar()\n");
if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0);
for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i];
case UnmapNotify:
case DestroyNotify:
if (e.xany.window == server.composite_manager) {
- // TODO: Stop real_transparency
- //signal_pending = SIGUSR2;
+ // Stop real_transparency
+ signal_pending = SIGUSR1;
break;
}
if (e.xany.window == g_tooltip.window || !systray.area.on_screen)
ev = &e.xclient;
if (ev->data.l[1] == server.atom._NET_WM_CM_S0) {
if (ev->data.l[2] == None)
- // TODO: Stop real_transparency
- //signal_pending = SIGUSR2;
- ;
+ // Stop real_transparency
+ signal_pending = SIGUSR1;
else
- // TODO: Start real_transparency
- //signal_pending = SIGUSR2;
- ;
+ // Start real_transparency
+ signal_pending = SIGUSR1;
}
if (!systray.area.on_screen) break;
if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) {
if (signal_pending == SIGUSR1) {
// restart tint2
// SIGUSR1 used when : user's signal, composite manager stop/start or xrandr
- FD_CLR (x11_fd, &fdset);
+ FD_CLR (x11_fd, &fdset); // not sure if needed
goto start;
}
else {