diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-08-10 15:30:23 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-08-10 15:30:23 +0900 |
commit | d46bfe5081df144da9d0bfc4ffb382feb2220213 (patch) | |
tree | ab40a0e85baeee633005059239dfa5b80cf7ee0b /src/window_manager.cpp | |
parent | 1a23bad65e9825a143c716f1e148dc7fcedf028d (diff) |
Fix a littlesandbox/knimitz/16085
Change-Id: I2d43084b0f96c74134a3b0af5ea8839529439840
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r-- | src/window_manager.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp index e785e4b..6731022 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -661,12 +661,12 @@ void WindowManager::onApplicationTerminated(const WMClientCtxt& ctxt) // Recovery Phase if(priv.main == sid) { - HMI_DEBUG("wm", "go to launcher"); if(ctxt.role != "launcher") { - // goto launcher + HMI_DEBUG("wm", "go to launcher"); auto pSid = this->id_alloc.lookup("launcher"); - std::string app = g_app_list.getAppID(*pSid, "launcher", &found); + if(pSid != nullptr) + std::string app = g_app_list.getAppID(*pSid, "launcher", &found); if(found) { this->api_activate_surface(app.c_str(), "launcher", kNameAreaDefault, @@ -676,10 +676,11 @@ void WindowManager::onApplicationTerminated(const WMClientCtxt& ctxt) } else if(priv.main != sid && priv.sub != sid) { - // re-show top surface - this->deactivate(priv.main); - this->activate(priv.main); + // TODO: re-show top surface. The bellow doesn't work. + /* this->deactivate(priv.main); this->layout_commit(); + this->activate(priv.main); + this->layout_commit(); */ } else {} g_app_list.removeClient(ctxt.name); |