From 4d67209654fe8de3407b513800471fc48c4865fc Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 14 Sep 2018 18:51:33 +0900 Subject: Fix requestSurfaceXDG Change-Id: Ieb3d46e03e6b7894cb3175ee5c48a725f86c3426 Signed-off-by: Kazumasa Mitsunari --- src/wm_layer_control.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/wm_layer_control.cpp') 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) -- cgit 1.2.3-korg