Proposal: New layer settings
[apps/agl-service-windowmanager-2017.git] / src / applist.cpp
index b06dee8..159b30d 100644 (file)
@@ -164,7 +164,7 @@ string AppList::getAppID(unsigned surface, const string& role, bool* found) cons
     *found = false;
     for (const auto &x : this->app2client)
     {
-        if(x.second->surfaceID(role) == surface){
+        if(x.second->surfaceID() == surface){
             *found = true;
             return x.second->appID();
         }
@@ -231,12 +231,13 @@ void AppList::removeFloatingSurface(unsigned surface)
 WMError AppList::appendRole(const string &id, const string &role, unsigned surface)
 {
     WMError wm_err = WMError::NO_ENTRY;
-    if (this->contains(id))
+    HMI_ERROR("wm", "This function is disabled");
+    /* if (this->contains(id))
     {
         auto x = this->lookUpClient(id);
         x->addSurface(role, surface);
         wm_err = WMError::SUCCESS;
-    }
+    } */
     return wm_err;
 }