jypark pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fb730c1fd747539875a91bc35b51c51df56709d9

commit fb730c1fd747539875a91bc35b51c51df56709d9
Author: Jiyoun Park <jy0703.p...@samsung.com>
Date:   Fri Mar 3 10:27:00 2017 +0900

    ecore_evas_wayland: fix bug ee's width and height were updated wrong place.
    
    ecore evas manages the width and height using the ee->w/h and ee->req.w/h.
    but sometimes only ee->req value can be updated.
---
 .../engines/wayland/ecore_evas_wayland_common.c          | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c 
b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 923d1e8..9718348 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -940,6 +940,12 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
 
    ee->req.w = w;
    ee->req.h = h;
+
+   /* TODO: wayland client can resize the ecore_evas directly.
+    * In the future, we will remove ee->req value in wayland backend */
+   ee->w = w;
+   ee->h = h;
+
    orig_w = w;
    orig_h = h;
 
@@ -1057,6 +1063,11 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int 
h)
         orig_w = w;
         orig_h = h;
 
+        ee->w = orig_w;
+        ee->h = orig_h;
+        ee->req.w = orig_w;
+        ee->req.h = orig_h;
+
         if (ECORE_EVAS_PORTRAIT(ee))
           {
              w += fw;
@@ -1078,11 +1089,6 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int 
h)
 
    if (diff)
      {
-        ee->w = orig_w;
-        ee->h = orig_h;
-        ee->req.w = orig_w;
-        ee->req.h = orig_h;
-
         if (ECORE_EVAS_PORTRAIT(ee))
           {
              evas_output_size_set(ee->evas, w, h);

-- 


Reply via email to