- if (desktop == 0xFFFFFFFF) {
- // task on all desktop
- int i;
- Task *new_tsk2;
- for (i = 1 ; i < server.nb_desktop ; i++) {
- new_tsk2 = malloc(sizeof(Task));
- memcpy(new_tsk2, new_tsk, sizeof(Task));
-
- new_tsk2->title = 0;
- new_tsk2->icon_data = 0;
- get_icon(new_tsk2);
- get_title(new_tsk2);
-
- tskbar = &panel.taskbar[index(i, monitor)];
- new_tsk2->area.parent = tskbar;
- tskbar->area.list = g_slist_append(tskbar->area.list, new_tsk2);
-
- if (resize_tasks (tskbar))
- set_redraw (&tskbar->area);
- }