lmcb.surfaceCreated = [&](unsigned pid, unsigned surface){
this->surface_created(surface);
};
+ lmcb.surfaceDestroyed = [&](unsigned surface){
+ this->surface_removed(surface);
+ };
this->lc->init(lmcb);
this->loadOldRoleDb();
css_bg.w, css_bg.h, dp_bg.left(), dp_bg.top(), dp_bg.width(), dp_bg.height());
double scale = static_cast<double>(dp_bg.height()) / css_bg.h;
- this->lc->setupArea(scale);
+ this->lc->setupArea(dp_bg, scale);
/* this->display->add_global_handler(
"wl_output", [this](wl_registry *r, uint32_t name, uint32_t v) {
{
auto client = g_app_list.lookUpClient(appid);
WMError ret = client->addSurface(surface_id);
- HMI_INFO("Add surface %d to \"%s\"", appid.c_str());
+ HMI_INFO("Add surface %d to \"%s\"", surface_id, appid.c_str());
if(ret != WMError::SUCCESS)
{
HMI_ERROR("Failed to add surface to client %s", client->appID().c_str());
//this->deactivate(client->surfaceID(x.role));
} */
}
- this->lc->commitChange();
+ this->lc->renderLayers();
ret = WMError::NO_LAYOUT_CHANGE;
}
return ret;
//this->lc_enddraw(act.role.c_str());
}
}
- this->lc->commitChange();
+ this->lc->renderLayers();
HMI_SEQ_INFO(req_num, "emit flushDraw");