Taskbar *tskbar;
Task *new_tsk2=0;
int i, j;
+ // QUESTION: Do we need to iterate over nb_panel (we know the monitor, why not taking panel1[monitor]???
for (i=0 ; i < nb_panel ; i++) {
for (j=0 ; j < panel1[i].nb_desktop ; j++) {
if (new_tsk.desktop != ALLDESKTOP && new_tsk.desktop != j) continue;
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);
+ }
}