X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_client.cpp;fp=src%2Fwm_client.cpp;h=f2ad7be467a0d59708683c959ce3925ea438eaa9;hb=b9da444f98dd5075dcda05932c47c732a5ae230f;hp=356cd6f49f346190d21d64f8e2f2745488140265;hpb=d2c062959c55c61a4e350f6df480d46d2a8d769c;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_client.cpp b/src/wm_client.cpp index 356cd6f..f2ad7be 100644 --- a/src/wm_client.cpp +++ b/src/wm_client.cpp @@ -141,6 +141,19 @@ bool WMClient::removeSurfaceIfExist(unsigned surface) this->surface = INVALID_SURFACE_ID; ret = true; } + else + { + for(auto &x : this->service2surfaces) + { + if(x.second = surface) + { + ret = true; + string key = x.first; + this->service2surfaces.erase(key); + this->service2supplier.erase(key); + } + } + } return ret; }