X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapplist.cpp;fp=src%2Fapplist.cpp;h=b5c1681f7239a04a895e11c6287452a086514e6b;hb=17dd59f6fbc3deead5ce85006fb79aa9845bbdb4;hp=5d7dce4cdb32c2da869b597b11cc833bb7990f4b;hpb=c19969f65fb1441fea3920f5ab5acae09b37397f;p=apps%2Fagl-service-windowmanager.git diff --git a/src/applist.cpp b/src/applist.cpp index 5d7dce4..b5c1681 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -124,6 +124,19 @@ void AppList::addFloatingSurface(unsigned surface, unsigned pid) this->floating_surfaces.push_back(fsurface); } +void AppList::removeFloatingSurface(unsigned surface) +{ + for (auto itr = this->floating_surfaces.begin(); itr != this->floating_surfaces.end(); ++itr) + { + if (surface == itr->surface_id) + { + HMI_DEBUG("wm", "Erase surface %d", itr->surface_id); + itr = this->floating_surfaces.erase(itr); + break; + } + } +} + WMError AppList::appendRole(const std::string &id, const std::string &role, unsigned surface) { WMError wm_err = WMError::NO_ENTRY;