+ if(this->tmp_surface2app.count(surface_id) != 0)
+ {
+ string appid = this->tmp_surface2app[surface_id];
+ this->tmp_surface2app.erase(surface_id);
+ if(g_app_list.contains(appid))
+ {
+ auto client = g_app_list.lookUpClient(appid);
+ WMError ret = client->addSurface(surface_id);
+ 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());
+ }
+ }
+ }
+ else
+ {
+ HMI_NOTICE("Unknown surface %d", surface_id);
+ }