int i;
Imlib_Image img = NULL;
XWMHints *hints = 0;
- long *data = 0;
+ gulong *data = 0;
int k;
for (k=0; k<TASK_STATE_COUNT; ++k) {
if (data) {
// get ARGB icon
int w, h;
- long *tmp_data;
+ gulong *tmp_data;
tmp_data = get_best_icon (data, get_icon_count (data, i), i, &w, &h, panel->g_task.icon_size1);
-
#ifdef __x86_64__
DATA32 icon_data[w * h];
int length = w * h;
//printf("Change active task %ld\n", w1);
if (w1) {
- Window w2;
- if (XGetTransientForHint(server.dsp, w1, &w2) != 0)
- if (w2 && !task_get_tasks(w1)) w1 = w2;
+ if (!task_get_tasks(w1)) {
+ Window w2;
+ while (XGetTransientForHint(server.dsp, w1, &w2))
+ w1 = w2;
+ }
set_task_state((task_active = task_get_task(w1)), TASK_ACTIVE);
}
}