Attempt to fix icon rendering problems

This commit is contained in:
o9000
2015-05-03 15:36:34 +02:00
parent 14d5c4e43d
commit e7c3f99e28
5 changed files with 39 additions and 23 deletions

View File

@@ -348,9 +348,13 @@ void draw_task_icon (Task *tsk, int text_width)
// Render
imlib_context_set_image (tsk->icon[tsk->current_state]);
imlib_context_set_blend(1);
imlib_context_set_drawable(tsk->area.pix);
imlib_render_image_on_drawable(pos_x, panel->g_task.icon_posy);
if (server.real_transparency) {
render_image(tsk->area.pix, pos_x, panel->g_task.icon_posy);
} else {
imlib_context_set_blend(1);
imlib_context_set_drawable(tsk->area.pix);
imlib_render_image_on_drawable(pos_x, panel->g_task.icon_posy);
}
}