From 59e56e5310bc9e952a58c3f2bb6136f0355682c3 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 1 Jan 2016 13:42:01 +0100 Subject: [PATCH] Simplify systray rendering --- src/systray/systraybar.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index febac85..d23a672 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -1186,31 +1186,10 @@ void systray_destroy_event(TrayWindow *traywin) void systray_render_icon_from_image(TrayWindow *traywin) { - Panel *panel = systray.area.panel; if (!traywin->image) return; imlib_context_set_image(traywin->image); - 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); render_image(systray.area.pix, traywin->x - systray.area.posx, traywin->y - systray.area.posy); - XCopyArea(server.dsp, - systray.area.pix, - panel->temp_pmap, - server.gc, - traywin->x - systray.area.posx, - traywin->y - systray.area.posy, - traywin->width, - traywin->height, - traywin->x, - traywin->y); } void systray_render_icon_composited(void *t)