]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/task.c
*fix* image rendering in real_transparency mode fixed (imlib_render_image does not...
[chaz/tint2] / src / taskbar / task.c
index 191394ca30da5f4635d27fc38d61b4cb82641f96..98c943aa0ddcdc6f13f606dcaea4f364acc8c2c1 100644 (file)
@@ -313,8 +313,13 @@ void draw_task_icon (Task *tsk, int text_width, int active)
                imlib_context_set_image (tsk->icon_active);
                pmap = &tsk->area.pix_active.pmap;
        }
-       imlib_context_set_drawable (*pmap);
-       imlib_render_image_on_drawable (pos_x, panel->g_task.icon_posy);
+       if (real_transparency) {
+               render_image(*pmap, pos_x, panel->g_task.icon_posy, imlib_image_get_width(), imlib_image_get_height() );
+       }
+       else {
+               imlib_context_set_drawable (*pmap);
+               imlib_render_image_on_drawable (pos_x, panel->g_task.icon_posy);
+       }
 }
 
 
This page took 0.026272 seconds and 4 git commands to generate.