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.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wm-client.cpp b/src/wm-client.cpp
index 4e0ff01..b568817 100644
--- a/src/wm-client.cpp
+++ b/src/wm-client.cpp
@@ -77,6 +77,18 @@ string WMClient::appID()
return this->id;
}
+unsigned WMClient::surfaceID(const string &role){
+ if(0 == role2surface.count(role)){
+ HMI_WARNING("wm", "invalid role");
+ return INVALID_SURFACE_ID;
+ }
+ return role2surface.at(role);
+}
+
+unsigned WMClient::layerID(){
+ return layer;
+}
+
void WMClient::registerLayer(unsigned layerID)
{
this->layer = layerID;