Add new hint to enable/disable auto raising window feature 81/127081/4
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 26 Apr 2017 06:22:27 +0000 (15:22 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 26 Apr 2017 06:39:23 +0000 (15:39 +0900)
If the hint exists, appcore will raise the window when getting
the reset request.

Adds:
 - APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL

Change-Id: I31b0ce8c04daca5a12dcb1f307d1efcae6a005c6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/appcore_ui_base.h
src/legacy/appcore-efl.c
src/ui_base/appcore_ui_base.c

index f11aa3c..a92b430 100644 (file)
@@ -44,6 +44,7 @@ enum appcore_ui_base_hint {
        APPCORE_UI_BASE_HINT_WINDOW_STACK_CONTROL = 0x2,
        APPCORE_UI_BASE_HINT_BG_LAUNCH_CONTROL = 0x4,
        APPCORE_UI_BASE_HINT_HW_ACC_CONTROL = 0x8,
+       APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL = 0x10,
 };
 
 int appcore_ui_base_on_receive(aul_type type, bundle *b);
index 3046d9f..17053ae 100644 (file)
@@ -106,7 +106,8 @@ EXPORT_API int appcore_efl_init(const char *name, int *argc, char ***argv,
                        APPCORE_UI_BASE_HINT_WINDOW_GROUP_CONTROL |
                        APPCORE_UI_BASE_HINT_WINDOW_STACK_CONTROL |
                        APPCORE_UI_BASE_HINT_BG_LAUNCH_CONTROL |
-                       APPCORE_UI_BASE_HINT_HW_ACC_CONTROL);
+                       APPCORE_UI_BASE_HINT_HW_ACC_CONTROL |
+                       APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL);
 
        return ret;
 }
index 76681c5..8872ac4 100644 (file)
@@ -444,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)