summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-16 18:39:45 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-30 11:35:27 +0900
commit76394140417669a943b2379c754d483102b525c5 (patch)
treebd2983821cc697189bddd92a415e8f43330e0ec6
parentee2b78c6c397e306e6ebb86fed0dbd336e9c7977 (diff)
downloadwayland-ivi-extension-76394140417669a943b2379c754d483102b525c5.tar.gz
ilmControl and weston-ivi-shell: Reverse order when client is added to resources.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rw-r--r--ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c4
-rwxr-xr-xweston-ivi-shell/src/ivi-controller.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
index 3118fdc..8bc1bec 100644
--- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
+++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c
@@ -2357,7 +2357,7 @@ wayland_getSurfaceIDs(t_ilm_int* pLength, t_ilm_surface** ppArray)
*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++;
}
@@ -2399,7 +2399,7 @@ wayland_getSurfaceIDsOnLayer(t_ilm_layer layer,
}
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++;
}
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);