aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_layer_control.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-14 18:51:33 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-14 19:09:57 +0900
commit4d67209654fe8de3407b513800471fc48c4865fc (patch)
treeb7f31f4a23c01478ad2147b76ca95308d90a21c1 /src/wm_layer_control.cpp
parent3bb2a22cfda22c2a7ad2e9d9d6266f116b0cf12a (diff)
Fix requestSurfaceXDG
Change-Id: Ieb3d46e03e6b7894cb3175ee5c48a725f86c3426 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.cpp15
1 files changed, 15 insertions, 0 deletions
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)