diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-12 16:18:32 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-12 16:18:32 +0900 |
commit | ec3cf2a4ba6c5c7be5db13b0e950b2869c50e99c (patch) | |
tree | 6b70380449ce9483eb454faccc0b7984c93615fc | |
parent | 03a040ad80c40cca33b0dc21e50bddf7d72689c1 (diff) |
Emit active/inactive
Change-Id: I95fab49ce6fa63a2f849fc896a0fd1a19c2c14cd
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/window_manager.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp index 2a50e76..1ab0291 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -883,6 +883,9 @@ WMError WindowManager::startTransition(unsigned req_num) for (const auto &x : actions) { this->lc->visibilityChange(x); + string old_role = this->rolenew2old[x.role]; + emit_deactivated(old_role.c_str()); + /* if (g_app_list.contains(x.appid)) { auto client = g_app_list.lookUpClient(x.appid); @@ -923,6 +926,18 @@ WMError WindowManager::doEndDraw(unsigned req_num) return ret; } ret = this->lc->visibilityChange(act); + + // Emit active/deactive event + string old_role = this->rolenew2old[act.role]; + if(act.visible == VISIBLE) + { + emit_activated(old_role.c_str()); + } + else + { + emit_deactivated(old_role.c_str()); + } + if (ret != WMError::SUCCESS) { HMI_SEQ_WARNING(req_num, |