X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwm_layer_control.cpp;h=5b801f777a11c75f82507822f96ddafdb50bd502;hb=c850f10572d9252f7650065d5a305ca3739fea13;hp=c5c7913a40cdf27b839c6221a9a898d14bfc1e5d;hpb=b6644e5cffa84e40d62e38f4ee0c14e64e0faf48;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index c5c7913..5b801f7 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -401,8 +401,11 @@ WMError LayerControl::layoutChange(const WMAction& action) if(!action.client->isSourceSizeSet()) { ilmSurfaceProperties sp; - ilm_getPropertiesOfSurface(surface, &sp); - if((sp.origSourceHeight != sp.sourceHeight) || (sp.origSourceWidth != sp.sourceWidth)) + if (ILM_SUCCESS != ilm_getPropertiesOfSurface(surface, &sp)) + return WMError::FAIL; + + if (sp.origSourceHeight != sp.sourceHeight || + sp.origSourceWidth != sp.sourceWidth) { HMI_SEQ_NOTICE(action.req_num, "set source size w:%d h%d", sp.origSourceWidth, sp.origSourceHeight); ilm_surfaceSetSourceRectangle(surface, 0, 0, sp.origSourceWidth, sp.origSourceHeight);