-
- wm->set_event_handler(LibWindowmanager::Event_Active, [wm](json_object *object) {
- const char *label = json_object_get_string(
- json_object_object_get(object, wm->kKeyDrawingName));
- HMI_DEBUG("simple-egl","Surface %s got activated! ", label);
- });
-
- wm->set_event_handler(LibWindowmanager::Event_Inactive, [wm](json_object *object) {
- const char *label = json_object_get_string(
- json_object_object_get(object, wm->kKeyDrawingName));
- HMI_DEBUG("simple-egl","Surface %s got inactivated!", label);
- });
-
- wm->set_event_handler(LibWindowmanager::Event_Visible, [wm](json_object *object) {
- const char *label = json_object_get_string(
- json_object_object_get(object, wm->kKeyDrawingName));
- HMI_DEBUG("simple-egl","Surface %s got visibled!", label);
- });
-
- wm->set_event_handler(LibWindowmanager::Event_Invisible, [wm](json_object *object) {
- const char *label = json_object_get_string(
- json_object_object_get(object, wm->kKeyDrawingName));
- HMI_DEBUG("simple-egl","Surface %s got invisibled!", label);
- gIsDraw = false;
- });
-
- wm->set_event_handler(LibWindowmanager::Event_SyncDraw, [wm](json_object *object) {
+ HMI_DEBUG("simple-egl","IVI_SURFACE_ID: %d ", g_id_ivisurf);
+ wm->set_event_handler(LibWindowmanager::Event_SyncDraw, [wm, window](json_object *object) {