Add a new hint of appcore ui 49/217849/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 15 Nov 2019 02:59:48 +0000 (11:59 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 15 Nov 2019 03:02:53 +0000 (12:02 +0900)
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 <h.jhun@samsung.com>
include/appcore_efl_base.h
include/appcore_ui_base.h
src/ui_base/appcore_ui_base.c

index 468a1ab132cb4a0892e17ce1ad2663a21c66f6f0..2fe542a237656cd70e22f683d98f064e0bca226f 100644 (file)
@@ -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);
index 1eddefa1a4e8683dee6a1fced14f62c6d2b616a8..5174a2b615dfbcf9611cda81a0cfd9e62c928de5 100644 (file)
@@ -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);
index eeac2b309ab0e5c58a32828a15b02bcfb0302c18..8f43a52be4ce7dd72e423d0e61ba45dece398182 100644 (file)
@@ -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);
 }