X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Flayout.c;h=d8d019671ab009cabbf10bee4a91254b7325a22b;hb=refs%2Fchanges%2F99%2F24999%2F3;hp=c078ac930860156ca0e392cdccd0b648eb79ad0c;hpb=35f6733fb39bc83cc16652a3da849d9f383263ef;p=src%2Fagl-compositor.git diff --git a/src/layout.c b/src/layout.c index c078ac9..d8d0196 100644 --- a/src/layout.c +++ b/src/layout.c @@ -370,6 +370,7 @@ ivi_layout_fullscreen_committed(struct ivi_surface *surface) struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = weston_desktop_surface_get_surface(dsurface); + const char *app_id = weston_desktop_surface_get_app_id(dsurface); struct ivi_output *output = surface->split.output; struct weston_output *woutput = output->output; @@ -397,6 +398,12 @@ ivi_layout_fullscreen_committed(struct ivi_surface *surface) wsurface->is_mapped = true; surface->view->is_mapped = true; + + shell_advertise_app_state(ivi, app_id, + NULL, AGL_SHELL_DESKTOP_APP_STATE_ACTIVATED); + + weston_log("Activation completed for app_id %s, role %s, output %s\n", + app_id, ivi_layout_get_surface_role_name(surface), output->name); } void @@ -427,6 +434,7 @@ ivi_layout_split_committed(struct ivi_surface *surface) struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = weston_desktop_surface_get_surface(dsurface); + const char *app_id = weston_desktop_surface_get_app_id(dsurface); struct ivi_output *output = surface->split.output; struct weston_output *woutput = output->output; @@ -502,6 +510,12 @@ ivi_layout_split_committed(struct ivi_surface *surface) wsurface->is_mapped = true; surface->view->is_mapped = true; + + shell_advertise_app_state(ivi, app_id, + NULL, AGL_SHELL_DESKTOP_APP_STATE_ACTIVATED); + + weston_log("Activation completed for app_id %s, role %s, output %s\n", + app_id, ivi_layout_get_surface_role_name(surface), output->name); } void @@ -512,6 +526,7 @@ ivi_layout_popup_committed(struct ivi_surface *surface) struct weston_desktop_surface *dsurface = surface->dsurface; struct weston_surface *wsurface = weston_desktop_surface_get_surface(dsurface); + const char *app_id = weston_desktop_surface_get_app_id(dsurface); struct ivi_output *output = surface->popup.output; struct weston_output *woutput = output->output; @@ -540,6 +555,12 @@ ivi_layout_popup_committed(struct ivi_surface *surface) wsurface->is_mapped = true; surface->view->is_mapped = true; + + shell_advertise_app_state(ivi, app_id, + NULL, AGL_SHELL_DESKTOP_APP_STATE_ACTIVATED); + + weston_log("Activation completed for app_id %s, role %s, output %s\n", + app_id, ivi_layout_get_surface_role_name(surface), output->name); } static void