aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index 6f1aa20..e226791 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -84,12 +84,23 @@ unsigned WMClient::surfaceID(const string &role) const
{
if (0 == this->role2surface.count(role))
{
- HMI_WARNING("wm", "invalid role");
+ HMI_NOTICE("wm", "invalid role %s : appID : %s", role.c_str(), this->id.c_str());
return INVALID_SURFACE_ID;
}
return this->role2surface.at(role);
}
+std::string WMClient::role(unsigned surface) const
+{
+ for(const auto& [key, value] : this->role2surface)
+ {
+ if(value == surface){
+ return key;
+ }
+ }
+ return std::string("");
+}
+
unsigned WMClient::layerID() const
{
return this->layer;