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>
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);
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;
}
}
}
- 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)