diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-08 19:19:48 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-08 19:19:48 +0900 |
commit | 3b32e055920b9b4904d609e381726a323697504e (patch) | |
tree | 51d49eb096ac588646d90e35f805dfe09b8979da /src/wm_layer_control.cpp | |
parent | b7a4072188f9370c456d65832634c1f136e18f32 (diff) |
Change layer size when layoutChange()
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_layer_control.cpp')
-rw-r--r-- | src/wm_layer_control.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 5319b2e..31078fe 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -341,7 +341,6 @@ WMError LayerControl::loadAreaDb(const std::string& path) WMError LayerControl::layoutChange(const WMAction& action) { - WMError ret = WMError::FAIL; if (action.visible == TaskVisible::INVISIBLE) { // Visibility is not change -> no redraw is required @@ -358,7 +357,8 @@ WMError LayerControl::layoutChange(const WMAction& action) // WMError ret = this->setLayerSize(layer, action.area); auto rect = this->getAreaSize(action.area); HMI_DEBUG("Set layout %d, %d, %d, %d",rect.x, rect.y, rect.w, rect.h); - ilmErrorTypes err = ilm_layerSetDestinationRectangle(layer, rect.x, rect.y, rect.w, rect.h); + ilm_layerSetSourceRectangle(layer, rect.x, rect.y, rect.w, rect.h); + ilm_layerSetDestinationRectangle(layer, rect.x, rect.y, rect.w, rect.h); for(auto &wm_layer: this->wm_layers) { if(wm_layer->hasLayerID(layer)) @@ -367,11 +367,8 @@ WMError LayerControl::layoutChange(const WMAction& action) ls.setArea(action.client->appID(), action.area); } } - if(err == ILM_SUCCESS) - { - ret = WMError::SUCCESS; - } - return ret; + + return WMError::SUCCESS; } WMError LayerControl::visibilityChange(const WMAction& action) |