X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=weston-ivi-shell%2Fsrc%2Fivi-controller.c;h=21a9404801160f9d729e9a14075ee62cc3f4dd36;hb=4a923ce47c15416ac2942a1d9f482f3588a2cac1;hp=82aca40eaf30b30ccf8d3b74bd7bc1eb278bbe84;hpb=49e05177dd97dbe817ffb2be2b7803ed801025ba;p=profile%2Fivi%2Fwayland-ivi-extension.git diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c index 82aca40..21a9404 100755 --- a/weston-ivi-shell/src/ivi-controller.c +++ b/weston-ivi-shell/src/ivi-controller.c @@ -1190,7 +1190,7 @@ add_client_to_resources(struct ivishell *shell, 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); @@ -1198,7 +1198,7 @@ add_client_to_resources(struct ivishell *shell, 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);