From: Hyunho Kang Date: Tue, 8 Nov 2016 04:47:16 +0000 (+0900) Subject: Add logic for missing widget buffer X-Git-Tag: accepted/tizen/3.0/common/20161114.082709^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=259f375448bb40b1c1a8988de2987bc29cb86caf;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Add logic for missing widget buffer Change-Id: I5af80856f0cd86acb7b08239c4864298a69f85b2 Signed-off-by: Hyunho Kang --- diff --git a/widget_toolkit/src/compositor.c b/widget_toolkit/src/compositor.c index 16f0b9f..86182e7 100644 --- a/widget_toolkit/src/compositor.c +++ b/widget_toolkit/src/compositor.c @@ -285,9 +285,18 @@ static void __rs_cb_buffer_update(struct tizen_remote_surface *trs, struct wl_bu static void __rs_cb_missing(struct tizen_remote_surface *trs, void *data) { - /* TODO */ + struct compositor_handler *handler; + _D("missing"); + handler = (struct compositor_handler *)data; + if (!handler) { + _E("Null handler"); + return; + } + handler->cb(handler->app_id, "removed", handler->evas_obj, handler->data); + evas_object_del(handler->evas_obj); + handler->evas_obj = NULL; } static aul_rsm_handler __rs_listener = {