diff options
Diffstat (limited to 'src/applist.cpp')
-rw-r--r-- | src/applist.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/applist.cpp b/src/applist.cpp index b06dee8..159b30d 100644 --- a/src/applist.cpp +++ b/src/applist.cpp @@ -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; } |