// 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();
*/
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);
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)
return ret;
}
+ g_app_list.reqDump();
for (const auto &action : actions)
{
if (action.visible == TaskVisible::VISIBLE)