aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 19:29:32 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 19:29:32 +0900
commitbf7d0cb39c5c99053a65b46a3b46b04a49da550a (patch)
tree53fddda93806e1d3142f1af1f50862d32af2349f /src/window_manager.cpp
parent4447dae31184c2f98022364abeb2b8d943cad302 (diff)
Emit syncDraw
Change-Id: Ib50673f88d8dd86b2f94f84ec02192a3780159c4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r--src/window_manager.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index 746ab17..cb45acd 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -169,7 +169,9 @@ int WindowManager::init()
// so create role map (old, new)
// Load old_role.db
LayerControlCallbacks lmcb;
- lmcb.surfaceCreated = [this](unsigned surface){HMI_DEBUG("show %d", surface);};
+ lmcb.surfaceCreated = [&](unsigned pid, unsigned surface){
+ this->surface_created(surface);
+ };
this->lc->init(lmcb);
this->loadOldRoleDb();
@@ -725,6 +727,7 @@ void WindowManager::send_event(char const *evname, char const *label, char const
*/
void WindowManager::surface_created(uint32_t surface_id)
{
+ HMI_DEBUG("current : %d", surface_id);
/* this->controller->get_surface_properties(surface_id, IVI_WM_PARAM_SIZE);
auto layer_id = this->layers.get_layer_id(surface_id);
@@ -1043,9 +1046,9 @@ void WindowManager::emit_syncdraw(char const *label, char const *area, int x, in
void WindowManager::emit_syncdraw(const string &role, const string &area)
{
-/* rect rect = this->layers.getAreaSize(area);
+ rect rect = this->lc->getAreaSize(area);
this->send_event(kListEventName[Event_SyncDraw],
- role.c_str(), area.c_str(), rect.x, rect.y, rect.w, rect.h); */
+ role.c_str(), area.c_str(), rect.x, rect.y, rect.w, rect.h);
}
void WindowManager::emit_flushdraw(char const *label)
@@ -1259,6 +1262,7 @@ WMError WindowManager::startTransition(unsigned req_num)
return ret;
}
+ g_app_list.reqDump();
for (const auto &action : actions)
{
if (action.visible == TaskVisible::VISIBLE)