devilhorns pushed a commit to branch master.

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

commit 116a0abf9326b274671d233be6626a5d63e153ab
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Nov 17 13:51:19 2015 -0500

    ecore-evas-wl: Fix issue of improper window geometry
    
    This fixes an issue where maximizing a window would set improper xdg
    surface window geometry. We receive window configure sizes based on
    xdg surface window geometry, so we need to subtract framespace there
    or else window size grows when maximizing/unmaximizing multiple times.
    This also adjusts the call to xdg_surface_set_window_geometry to
    account for framespace (Fixes T2842).
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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 cc61a48..46a8d25 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,6 +191,18 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
    if (nw < 1) nw = 1;
    if (nh < 1) nh = 1;
 
+   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);
 

-- 


Reply via email to