X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_layer_control.cpp;h=cf82a6b6b343796b71e7f9db502b5038cfd92b77;hb=4d67209654fe8de3407b513800471fc48c4865fc;hp=0028fca2693fa8e33e859ef7b5c22cad73f8de21;hpb=3bb2a22cfda22c2a7ad2e9d9d6266f116b0cf12a;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 0028fca..cf82a6b 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -258,6 +258,21 @@ WMError LayerControl::renderLayers() return rc; } +WMError LayerControl::setXDGSurfaceOriginSize(unsigned surface) +{ + WMError ret = WMError::NOT_REGISTERED; + ilmSurfaceProperties prop; + ilmErrorTypes rc = ilm_getPropertiesOfSurface(surface, &prop); + if(rc == ILM_SUCCESS) + { + HMI_INFO("xdg surface info %d, %d", prop.origSourceWidth, prop.origSourceHeight); + ilm_surfaceSetSourceRectangle(surface, 0, 0, prop.origSourceWidth, prop.origSourceHeight); + ret = WMError::SUCCESS; + } + return ret; +} + + void LayerControl::undoUpdate() { for(auto& l : this->wm_layers)