aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-clientmanager.cpp
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-20 14:36:11 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-20 14:36:11 +0800
commitd90e4284fc6fc61371c7b31b8cbb9fd99c369636 (patch)
treeb59fa50b3c588b06fd238ac63f5e29930b5a0aab /src/hs-clientmanager.cpp
parenta87a614a3997f64110c39c589b23513e617de367 (diff)
set area in showWindow
Change-Id: If5a8addaa7ee3827463d3ed030d05577a7d90ffe
Diffstat (limited to 'src/hs-clientmanager.cpp')
-rw-r--r--src/hs-clientmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hs-clientmanager.cpp b/src/hs-clientmanager.cpp
index d84d07b..a1472b8 100644
--- a/src/hs-clientmanager.cpp
+++ b/src/hs-clientmanager.cpp
@@ -20,6 +20,8 @@
#include "hs-apprecover.h"
static const char _homescreen[] = "homescreen";
+static const char _area[] = "area";
+static const char _parameter[] = "parameter";
const std::string _listen_all("all");
HS_ClientManager* HS_ClientManager::me = nullptr;
@@ -267,7 +269,10 @@ bool HS_ClientManager::checkRegisterApp(afb_api_t api, const std::string &appid)
}
else if(startup_appid == appid) {
startup_appid.clear();
- pushEvent("showWindow", nullptr, appid);
+ struct json_object* json_param = json_object_new_object();
+ json_object_object_add(json_param, _area, json_object_new_string(startup_area.c_str()));
+ pushEvent("showWindow", json_param, appid);
+ startup_area.clear();
}
else {
ret = false;