X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=59131438d1853ff594234f5995a2c0714f6e40cb;hb=5dd3cfcc31b87c26cfd8f5cd4ba437082e181f1b;hp=897dee76b2d435bcfaf107b9928faa4616878538;hpb=ea2edb72018278f8702d3a84fd30285bccc392c4;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.cpp b/src/app.cpp index 897dee7..5913143 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1373,6 +1373,17 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid id.c_str(), surface, *lid, role.c_str()); app_list->addClient(id, *lid, surface, role); } + + // register pair drawing_name and ivi_id + this->id_alloc.register_name_id(role.c_str(), surface); + this->layers.add_surface(surface, *lid); + + // this surface is already created + HMI_DEBUG("wm", "surface_id is %u, layer_id is %u", surface, *lid); + + this->controller->layers[*lid]->add_surface(surface); + this->layout_commit(); + return ret; }