X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-clientmanager.cpp;h=a1472b85f754c97046a2fd1a71dfa2b0aa33f694;hb=d90e4284fc6fc61371c7b31b8cbb9fd99c369636;hp=d84d07b67953b059c2c35a4e418c4cbdcff973da;hpb=a87a614a3997f64110c39c589b23513e617de367;p=apps%2Fagl-service-homescreen.git 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;