*ppArray = (t_ilm_surface*)malloc(length * sizeof *ppArray);
if (*ppArray != NULL) {
t_ilm_surface* ids = *ppArray;
- wl_list_for_each(ctx_surf, &ctx->main_ctx.list_surface, link) {
+ wl_list_for_each_reverse(ctx_surf, &ctx->main_ctx.list_surface, link) {
*ids = ctx_surf->id_surface;
ids++;
}
}
ids = *ppArray;
- wl_list_for_each(ctx_surf, &ctx_layer->order.list_surface, order.link) {
+ wl_list_for_each_reverse(ctx_surf, &ctx_layer->order.list_surface, order.link) {
*ids = (t_ilm_surface)ctx_surf->id_surface;
ids++;
}
uint32_t id_layout_surface = 0;
uint32_t id_layout_layer = 0;
- wl_list_for_each(ivisurf, &shell->list_surface, link) {
+ wl_list_for_each_reverse(ivisurf, &shell->list_surface, link) {
id_layout_surface =
ivi_layout_getIdOfSurface(ivisurf->layout_surface);
id_layout_surface);
}
- wl_list_for_each(ivilayer, &shell->list_layer, link) {
+ wl_list_for_each_reverse(ivilayer, &shell->list_layer, link) {
id_layout_layer =
ivi_layout_getIdOfLayer(ivilayer->layout_layer);