X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=6c4aa688e57975a6918a8c402166f9168c602242;hb=2e6b12080e5187b0e0db377cd4df22405119e5b8;hp=f54bebe6ee9c5d4e411dbfa4f664ed2cd3ea8c7d;hpb=a1783c29169a83f9359106678c26fdc28815ccde;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index f54bebe..6c4aa68 100644 --- a/src/tint.c +++ b/src/tint.c @@ -86,7 +86,6 @@ void init () void cleanup() { - cleanup_systray(); cleanup_panel(); if (time1_font_desc) pango_font_description_free(time1_font_desc); @@ -549,6 +548,7 @@ load_config: case UnmapNotify: case DestroyNotify: + if (!systray.area.on_screen) break; for (it = systray.list_icons; it; it = g_slist_next(it)) { if (((TrayWindow*)it->data)->id == e.xany.window) { remove_icon((TrayWindow*)it->data); @@ -558,6 +558,7 @@ load_config: break; case ClientMessage: + if (!systray.area.on_screen) break; //printf("ClientMessage\n"); if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) { net_message(&e.xclient);