devilhorns pushed a commit to branch master.

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

commit dbebfc505a2e0de5c70c328ab5250e49630dbc02
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Oct 12 10:59:33 2015 -0400

    ecore-evas-wayland: Fix common window configure callback to not adjust
    for framespace
    
    Summary: As we have already adjusted for framespace in various code
    leading up to a configure callback, don't adjust for it here. This
    fixes an issue where xdg surface window geometry would get incorrect
    values which were including framespace. The values of the
    xdg_surface_set_window_geometry should be Just the geometry of the
    visible window.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 .../engines/wayland/ecore_evas_wayland_common.c    | 27 +++-------------------
 1 file changed, 3 insertions(+), 24 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 9b3eccb..a081f47 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
@@ -191,27 +191,6 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
    if (nw < 1) nw = 1;
    if (nh < 1) nh = 1;
 
-   if (ee->prop.fullscreen)
-     {
-        if ((nw <= 1) || (nh <= 1))
-          evas_output_size_get(ee->evas, &nw, &nh);
-     }
-   else
-     {
-        evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
-     }
-
-   if (ECORE_EVAS_PORTRAIT(ee))
-     {
-        nw -= fw;
-        nh -= fh;
-     }
-   else
-     {
-        nw -= fh;
-        nh -= fw;
-     }
-
    if (prev_full != ee->prop.fullscreen)
      _ecore_evas_wl_common_border_update(ee);
 
@@ -620,6 +599,9 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
           }
      }
 
+   if (wdata->win)
+     ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
+
    evas_output_size_get(ee->evas, &ow, &oh);
    if ((ow != w) || (oh != h))
      {
@@ -651,9 +633,6 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
         if (wdata->frame)
           evas_object_resize(wdata->frame, w, h);
 
-        if (wdata->win)
-          ecore_wl_window_update_size(wdata->win, w, h);
-
         if (ee->func.fn_resize) ee->func.fn_resize(ee);
      }
 }

-- 


Reply via email to