Add commit_change after layer size changed
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 10 Sep 2018 02:52:09 +0000 (11:52 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 10 Sep 2018 02:52:09 +0000 (11:52 +0900)
Change-Id: I93b931e2371939cda5a3977a1a4859658e302795
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/wm_layer_control.cpp

index e6c406b..13072a4 100644 (file)
@@ -358,7 +358,9 @@ WMError LayerControl::layoutChange(const WMAction& action)
     auto rect = this->getAreaSize(action.area);
     HMI_DEBUG("Set layout %d, %d, %d, %d",rect.x, rect.y, rect.w, rect.h);
     ilm_layerSetSourceRectangle(layer, 0, 0, rect.w, rect.h);
     auto rect = this->getAreaSize(action.area);
     HMI_DEBUG("Set layout %d, %d, %d, %d",rect.x, rect.y, rect.w, rect.h);
     ilm_layerSetSourceRectangle(layer, 0, 0, rect.w, rect.h);
+    ilm_commitChanges();
     ilm_layerSetDestinationRectangle(layer, rect.x, rect.y, rect.w, rect.h);
     ilm_layerSetDestinationRectangle(layer, rect.x, rect.y, rect.w, rect.h);
+    ilm_commitChanges();
     for(auto &wm_layer: this->wm_layers)
     {
         if(wm_layer->hasLayerID(layer))
     for(auto &wm_layer: this->wm_layers)
     {
         if(wm_layer->hasLayerID(layer))