Hi,
I did some play around with the layout module. Works really easy so
far. But now I get a segfault in E while trying to get the window list.
static void
_e_module_layout_cb_hook(void *data, E_Border *bd)
{
Evas_List *clientList = NULL;
int i = 0;
clientList = e_border_client_list();
printf ("num: %d\n", evas_list_count (clientList));
do
{
E_Border *border;
clientList = evas_list_next (clientList);
printf ("count: %d\n", i);
++i;
border = clientList->data;
printf ("window type is: %d\n", border->client.netwm.type); // crash
}
while (clientList);
printf ("Current window tyoe: %d\n", bd->client.netwm.type); // works
}
The question is why that happens. Maybe I used Evas_List in a wrong
way. Could anyone have a short eye on this?
regards
Andreas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel