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);
+ }
}
}
-void blink_urgent()
+void blink_urgent(void* arg)
{
GSList* urgent_task = urgent_list;
while (urgent_task) {
urgent_list = g_slist_concat(urgent_add, urgent_list);
if (urgent_timeout == 0)
- urgent_timeout = add_timeout(10, 1000, blink_urgent);
+ urgent_timeout = add_timeout(10, 1000, blink_urgent, 0);
}