return (int)((a->win)-(b->win));
}
-GSList *g_winnode_list = NULL;
+static GSList *g_winnode_list;
#if defined(MEMORY_FLUSH_ACTIVATE)
static Eina_Bool __appcore_memory_flush_cb(void *data)
return 0;
}
- g_winnode_list = g_slist_remove_link(g_winnode_list, f);
+ g_winnode_list = g_slist_delete_link(g_winnode_list, f);
free(f->data);
g_winnode_list = g_slist_remove_link(g_winnode_list, f);
- free(f->data);
-
- t = calloc(1, sizeof(struct win_node));
- if (t == NULL)
- return FALSE;
-
+ t = f->data;
t->win = win;
t->bfobscured = bfobscured;
- g_winnode_list = g_slist_append(g_winnode_list, t);
-
+ g_winnode_list = g_slist_concat(g_winnode_list, f);
+
return TRUE;
}