summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-20 18:26:16 +0900
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2014-06-30 11:35:27 +0900
commit6d0ef9e605c7dc7b8aec7bee9401cf127da9fb2e (patch)
treed0ff2e23fc9675356910493c95226e2e595325c5
parent652b01ac6ea05729355041f4d55d4dbdb3c3baf7 (diff)
downloadwayland-ivi-extension-6d0ef9e605c7dc7b8aec7bee9401cf127da9fb2e.tar.gz
weston-ivi-shell: change order of transmitting notification; surface->layer->Screen to Screen->Layer->surface.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rwxr-xr-xweston-ivi-shell/src/ivi-controller.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c
index 4f30d09..e050292 100755
--- a/weston-ivi-shell/src/ivi-controller.c
+++ b/weston-ivi-shell/src/ivi-controller.c
@@ -1268,22 +1268,6 @@ add_client_to_resources(struct ivishell *shell,
uint32_t id_layout_surface = 0;
uint32_t id_layout_layer = 0;
- wl_list_for_each_reverse(ivisurf, &shell->list_surface, link) {
- id_layout_surface =
- ivi_layout_getIdOfSurface(ivisurf->layout_surface);
-
- ivi_controller_send_surface(controller->resource,
- id_layout_surface);
- }
-
- wl_list_for_each_reverse(ivilayer, &shell->list_layer, link) {
- id_layout_layer =
- ivi_layout_getIdOfLayer(ivilayer->layout_layer);
-
- ivi_controller_send_layer(controller->resource,
- id_layout_layer);
- }
-
wl_list_for_each(iviscrn, &shell->list_screen, link) {
resource_output = wl_resource_find_for_client(
&iviscrn->output->resource_list, client);
@@ -1300,6 +1284,20 @@ add_client_to_resources(struct ivishell *shell,
wl_resource_get_id(resource_output),
ctrlscrn->resource);
}
+ wl_list_for_each_reverse(ivilayer, &shell->list_layer, link) {
+ id_layout_layer =
+ ivi_layout_getIdOfLayer(ivilayer->layout_layer);
+
+ ivi_controller_send_layer(controller->resource,
+ id_layout_layer);
+ }
+ wl_list_for_each_reverse(ivisurf, &shell->list_surface, link) {
+ id_layout_surface =
+ ivi_layout_getIdOfSurface(ivisurf->layout_surface);
+
+ ivi_controller_send_surface(controller->resource,
+ id_layout_surface);
+ }
}
static void