diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/window_manager.cpp | 10 |
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) |