ilmControl: Return REMOVED immediatly when notification is set even if wl_surface...
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 29 Jul 2014 07:33:43 +0000 (16:33 +0900)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Thu, 21 Aug 2014 01:08:14 +0000 (10:08 +0900)
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c

index 45a0277..6c68d74 100644 (file)
@@ -2423,6 +2423,9 @@ ilm_surfaceAddNotification(t_ilm_surface surface,
     ctx_surf = (struct surface_context*)get_surface_context(
                     &ctx->wl, (uint32_t)surface);
     if (ctx_surf == NULL) {
+        if (callback != NULL) {
+            callback((uint32_t)surface, NULL, ILM_NOTIFICATION_CONTENT_REMOVED);
+        }
         controller_listener_surface(ctx, ctx->wl.controller, (uint32_t)surface);
         ctx_surf = (struct surface_context*)get_surface_context(
                         &ctx->wl, (uint32_t)surface);