From 168673747761d34157781ecd9f98c6a5e1529213 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 15 Nov 2019 11:59:48 +0900 Subject: [PATCH] Add a new hint of appcore ui If APPCORE_UI_BASE_HINT_WINDOW_ID_CONTROL is set, appcore_ui_base sets the ID of the window using the application ID. Change-Id: I86b5162cce8012f36614095e9b20db289cb209d9 Signed-off-by: Hwankyu Jhun --- include/appcore_efl_base.h | 1 + include/appcore_ui_base.h | 1 + src/ui_base/appcore_ui_base.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/appcore_efl_base.h b/include/appcore_efl_base.h index 468a1ab..2fe542a 100644 --- a/include/appcore_efl_base.h +++ b/include/appcore_efl_base.h @@ -36,6 +36,7 @@ enum appcore_efl_base_hint { APPCORE_EFL_BASE_HINT_HW_ACC_CONTROL = APPCORE_UI_BASE_HINT_HW_ACC_CONTROL, APPCORE_EFL_BASE_HINT_WINDOW_AUTO_CONTROL = APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL, APPCORE_EFL_BASE_HINT_LEGACY_CONTROL = APPCORE_UI_BASE_HINT_LEGACY_CONTROL, + APPCORE_EFL_BASE_HINT_WINDOW_ID_CONTROL = APPCORE_UI_BASE_HINT_WINDOW_ID_CONTROL, }; int appcore_efl_base_on_receive(aul_type type, bundle *b); diff --git a/include/appcore_ui_base.h b/include/appcore_ui_base.h index 1eddefa..5174a2b 100644 --- a/include/appcore_ui_base.h +++ b/include/appcore_ui_base.h @@ -48,6 +48,7 @@ enum appcore_ui_base_hint { APPCORE_UI_BASE_HINT_HW_ACC_CONTROL = 0x8, APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL = 0x10, APPCORE_UI_BASE_HINT_LEGACY_CONTROL = 0x20, + APPCORE_UI_BASE_HINT_WINDOW_ID_CONTROL = 0x40, }; int appcore_ui_base_on_receive(aul_type type, bundle *b); diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index eeac2b3..8f43a52 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -1029,7 +1029,8 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar } } - __set_app_id(); + if (__context.hint & APPCORE_UI_BASE_HINT_WINDOW_ID_CONTROL) + __set_app_id(); return appcore_base_init(ops.base, argc, argv, data); } -- 2.7.4