summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2019-02-13 16:39:20 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2019-02-13 16:45:07 +0900
commit9d11f4cdcfe670d768253995fa6e9cd7a43b2a11 (patch)
tree75eba7b0b12c78999fac6ee9aab9b07ca3a85f8a
parent29ccdc200753aeff10365eeea5e5b676856dba49 (diff)
downloadapp-core-9d11f4cdcfe670d768253995fa6e9cd7a43b2a11.tar.gz
app-core-9d11f4cdcfe670d768253995fa6e9cd7a43b2a11.tar.bz2
app-core-9d11f4cdcfe670d768253995fa6e9cd7a43b2a11.zip
Add an exception handling about raising the window
If the launch request is for RPC-Port, appcore-ui-base doesn't raise the window. Change-Id: I20813a274a63f66e893d44351f351f8b426514a9 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/ui_base/appcore_ui_base.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c
index ccf47b8..eb14658 100644
--- a/src/ui_base/appcore_ui_base.c
+++ b/src/ui_base/appcore_ui_base.c
@@ -39,6 +39,7 @@
#include <stdbool.h>
#include <aul.h>
#include <aul_svc.h>
+#include <aul_rpc_port.h>
#include <bundle_internal.h>
#include <ttrace.h>
@@ -555,6 +556,7 @@ static void __do_start(bundle *b)
{
const char *bg_launch;
const char *below_app;
+ const char *rpc_port;
if (__context.hint & APPCORE_UI_BASE_HINT_WINDOW_STACK_CONTROL) {
if (__context.below_app) {
@@ -585,8 +587,11 @@ static void __do_start(bundle *b)
}
if (__context.hint & APPCORE_UI_BASE_HINT_WINDOW_AUTO_CONTROL) {
- if (!__context.bg_state)
- __raise_win();
+ if (!__context.bg_state) {
+ rpc_port = bundle_get_val(b, AUL_K_RPC_PORT);
+ if (!rpc_port)
+ __raise_win();
+ }
}
}