X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui_base%2Fappcore_ui_base.c;h=8872ac4edf395e25e95040a61bf4fef7501994f5;hb=3a98ffb5b68c83871880ea90c7afc262d235e735;hp=31da1ef897a34eda9164ef05a65549ab76e7fef9;hpb=d6a09f48f7ced6a16793fc4fc0f99aa21bac25ac;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index 31da1ef..8872ac4 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -43,10 +43,13 @@ #include #include #include +#include +#include #include "appcore_base.h" #include "appcore_ui_base.h" #include "appcore_ui_base_private.h" +#include "appcore_ui_plugin.h" enum app_state { AS_NONE, @@ -441,8 +444,10 @@ static void __do_start(bundle *b) } } - if (!bg_state) - __raise_win(); + if (__context.hint & APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL) { + if (!bg_state) + __raise_win(); + } } EXPORT_API int appcore_ui_base_on_receive(aul_type type, bundle *b) @@ -682,7 +687,10 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar const char *bg_launch; bundle *b; char appid[PATH_MAX] = {0, }; + int r; + bool is_vc_vt_automode = false; + appcore_ui_plugin_init(&ops, &hint); aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)); __context.ops = ops; __context.data = data; @@ -695,6 +703,16 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:main:done]", appid); elm_init(argc, argv); + r = vc_elm_is_supported_vt_auto(&is_vc_vt_automode); + if (r != 0) { + _ERR("[VC] Fail to get vconfkey of vt_automode"); + } else { + if (is_vc_vt_automode == true) { + vc_elm_initialize(); + vc_elm_set_auto_register_mode(2, 0); + } + } + if (__context.hint & APPCORE_UI_BASE_HINT_HW_ACC_CONTROL) { hwacc = getenv("HWACC"); @@ -727,7 +745,11 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar EXPORT_API void appcore_ui_base_fini(void) { + bool is_vc_vt_automode = false; + int r; + appcore_base_fini(); + appcore_ui_plugin_fini(); if (__context.hshow) ecore_event_handler_del(__context.hshow); @@ -739,6 +761,15 @@ EXPORT_API void appcore_ui_base_fini(void) ecore_event_handler_del(__context.hlower); __finish_wl(); + + r = vc_elm_is_supported_vt_auto(&is_vc_vt_automode); + if (r != 0) { + _ERR("[VC] Fail to get vconfkey of vt_automode"); + } else { + if (is_vc_vt_automode == true) + vc_elm_deinitialize(); + } + elm_shutdown(); /* Check loader case */