WMError LayerControl::layoutChange(const WMAction& action)
{
- WMError ret = WMError::FAIL;
if (action.visible == TaskVisible::INVISIBLE)
{
// Visibility is not change -> no redraw is required
// 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))
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)