diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-11 17:33:07 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-11 17:33:07 +0900 |
commit | 911a0dd54c9d8a844da0d17b030d7ba045fd8fc6 (patch) | |
tree | 8994aa6d8bbcf942e6ab427958b9b81b2429725e /sample/simple-egl/src/simple-egl.cpp | |
parent | fbf27649e8b43a716d45c676acdee83292db7bbb (diff) |
add update shortcutsandbox/zheng_wenlong/als2019_horizontal
Diffstat (limited to 'sample/simple-egl/src/simple-egl.cpp')
-rw-r--r-- | sample/simple-egl/src/simple-egl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/simple-egl/src/simple-egl.cpp b/sample/simple-egl/src/simple-egl.cpp index aa6ea19..2027b36 100644 --- a/sample/simple-egl/src/simple-egl.cpp +++ b/sample/simple-egl/src/simple-egl.cpp @@ -572,12 +572,12 @@ init_hs(LibHomeScreen* hs){ hs->set_event_handler(LibHomeScreen::Event_ShowWindow, [hs](json_object *object){ HMI_DEBUG("simple-egl","try to activeWindow %s ", app_name.c_str()); - struct json_object *param_obj = json_object_object_get(object, hs->_keyParameter); + struct json_object *param_obj = json_object_object_get(object, "parameter"); const char *area = json_object_get_string( - json_object_object_get(param_obj, hs->_keyArea)); + json_object_object_get(param_obj, "area")); // Application should call LibWindowmanager::activateWindow() in showWindow handler if(area == nullptr) - wm->activateWindow(main_role, hs->_areaNormal); + wm->activateWindow(main_role, "normal.full"); else wm->activateWindow(main_role, area); }); @@ -653,7 +653,7 @@ main(int argc, char **argv) eglSwapBuffers(window.display->egl.dpy, window.egl_surface); - wm->activateWindow(main_role); + hs->publishSubscription(); /* The mainloop here is a little subtle. Redrawing will cause * EGL to read events so we can just call |