Enable functions
[apps/agl-service-windowmanager.git] / src / app.cpp
index 4d9e969..7f19572 100644 (file)
@@ -1303,11 +1303,11 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid
     if(0 != pid){
         // search floating surfaceID from pid if pid is designated.
         // It is not good that application request with its pid
-        //wm_err = g_app_list.lookUpFloatingSurface(pid, &surface);
+        wm_err = g_app_list.lookUpFloatingSurface(pid, &surface);
     }
     else{
         // get floating surface with appid. If WM queries appid from pid,
-        // WM can bind appid and role to surface (not implemented yet)
+        // WM can bind surface and role with appid(not implemented yet)
         //wm_err = g_app_list.lookUpFloatingSurface(id);
     }
     if(wm_err != WMError::SUCCESS){
@@ -1322,7 +1322,7 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid
     {
         HMI_INFO("wm", "Add role: %s with surface: %d. Client %s has multi surfaces.",
                  role.c_str(), surface, id.c_str());
-        //wm_err = g_app_list.appendRole(id, surface, role);
+        wm_err = g_app_list.appendRole(id, role, surface);
         if(wm_err != WMError::SUCCESS){
             HMI_INFO("wm", errorDescription(wm_err));
         }