From 40d8d05be7d3dcf6db04bcdf2a0db713996f9780 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 28 Mar 2015 22:45:15 +0000 Subject: [PATCH] Reverted systray icon rendering to fix issue 479 git-svn-id: http://tint2.googlecode.com/svn/trunk@745 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/systray/systraybar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 0f5eec5..f4637f2 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -600,9 +600,7 @@ void systray_render_icon_now(void* t) adjust_asb(data, traywin->width, traywin->height, systray.alpha, (float)systray.saturation/100, (float)systray.brightness/100); imlib_image_put_back_data(data); XCopyArea(server.dsp, render_background, systray.area.pix, server.gc, traywin->x-systray.area.posx, traywin->y-systray.area.posy, traywin->width, traywin->height, traywin->x-systray.area.posx, traywin->y-systray.area.posy); - imlib_context_set_blend(1); - imlib_context_set_drawable(systray.area.pix); - imlib_render_image_on_drawable(traywin->x-systray.area.posx, traywin->y-systray.area.posy); + render_image(systray.area.pix, traywin->x-systray.area.posx, traywin->y-systray.area.posy, traywin->width, traywin->height); XCopyArea(server.dsp, systray.area.pix, panel->main_win, server.gc, traywin->x-systray.area.posx, traywin->y-systray.area.posy, traywin->width, traywin->height, traywin->x, traywin->y); imlib_free_image_and_decache(); XFreePixmap(server.dsp, tmp_pmap);