Fix a little : wm_layer_control
[apps/agl-service-windowmanager.git] / src / wm_layer_control.cpp
index 325598d..e0800f8 100644 (file)
@@ -187,9 +187,10 @@ WMError LayerControl::updateLayer(LayerState& layer_state)
 
 WMError LayerControl::commitChange()
 {
+    HMI_INFO("Commit change");
     WMError rc = WMError::SUCCESS;
     vector<unsigned> ivi_l_ids;
-    for(const auto& l : this->wm_layers)
+    for(auto& l : this->wm_layers)
     {
         auto state = l->getLayerState();
         for(const auto& id : state.getIviIdList())
@@ -208,6 +209,7 @@ WMError LayerControl::commitChange()
     for(const auto& i : ivi_l_ids)
     {
         id_array[count] = i;
+        HMI_DEBUG("check render order %d", i);
         ++count;
     }
 
@@ -380,7 +382,6 @@ WMError LayerControl::visibilityChange(const WMAction& action)
 
 void LayerControl::dispatchCreateEvent(ilmObjectType object, unsigned id, bool created)
 {
-    this->cb.test(id);
     if (ILM_SURFACE == object)
     {
         if (created)
@@ -390,7 +391,7 @@ void LayerControl::dispatchCreateEvent(ilmObjectType object, unsigned id, bool c
             rc = ilm_getPropertiesOfSurface(id, &sp);
             if(rc != ILM_SUCCESS)
                 return;
-            // this->cb->surfaceCreated(pid, id);
+            this->cb.surfaceCreated(sp.creatorPid, id);
             ilm_surfaceAddNotification(id, surfaceCallback_static);
             ilm_surfaceSetSourceRectangle(id, 0, 0, sp.origSourceWidth, sp.origSourceHeight);
         }