From 7664dc29a57bebc2c416a04452cf416988ef6c09 Mon Sep 17 00:00:00 2001 From: hyunho Date: Tue, 16 Jan 2018 19:35:10 +0900 Subject: [PATCH] Call connect for ecore init Change-Id: I6b4fe62a007dd79bf09195a70dcb97a78a95f532 Signed-off-by: hyunho --- src/ui_base/appcore_ui_base.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index 17cce83..0ee6d34 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -918,8 +918,12 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar char appid[PATH_MAX] = {0, }; int ret; - ecore_wl2_init(); + if (!ecore_wl2_init()) { + _ERR("could not wl2 init"); + return -1; + } + ecore_wl2_display_connect(NULL); appcore_ui_plugin_init(&ops, argc, argv, &hint); ret = aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)); if (ret != 0) { @@ -960,6 +964,8 @@ EXPORT_API void appcore_ui_base_fini(void) appcore_base_fini(); appcore_ui_plugin_fini(); + _ERR("disconnect wl2_display"); + ecore_wl2_display_disconnect(ecore_wl2_connected_display_get(NULL)); ecore_wl2_shutdown(); } -- 2.7.4