X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=c8c0b6b6ea3b33963e236be0b6a70cc0872528aa;hb=bb00ef3c982009c990cccf86af7fd9b904ba20a1;hp=10344b7792a8c80fc19638094a4f9b5481ccefff;hpb=341037bd9402f61364d71765150f4afc1c235c9d;p=chaz%2Ftint2 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 10344b7..c8c0b6b 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -66,6 +66,7 @@ void default_systray() void cleanup_systray() { + stop_net(); systray_enabled = 0; systray_max_icon_size = 0; systray.area.on_screen = 0; @@ -372,6 +373,7 @@ gboolean add_icon(Window id) if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE; unsigned long mask = 0; XSetWindowAttributes set_attr; + //printf("icon with depth: %d, width %d, height %d\n", attr.depth, attr.width, attr.height); printf("icon with depth: %d\n", attr.depth); if (attr.depth != server.depth || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0) { set_attr.colormap = attr.colormap; @@ -575,6 +577,8 @@ void systray_render_icon_now(void* t) return; imlib_context_set_image(image); + //if (traywin->depth == 24) + //imlib_save_image("/home/thil77/test.jpg"); imlib_image_set_has_alpha(1); DATA32* data = imlib_image_get_data(); if (traywin->depth == 24) {