devilhorns pushed a commit to branch master.

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

commit 64a65f42a38ef562c8f77d16ab30221910cc4aef
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Nov 9 11:55:21 2015 -0500

    ecore-evas-wl: Fix issue of resize jumping
    
    Summary: When an initial client application was shown and we tried to
    resize it, the resize would jump by the amount of framespace. This was
    because the xdg_surface@configure event would be sending window
    geometry as the width/height params in the event. We need to account
    for that in the callback of window configure and adjust size
    accordingly.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 4 ++++
 1 file changed, 4 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 b24883a..3dc66b1 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,7 +191,11 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
    if (nw < 1) nw = 1;
    if (nh < 1) nh = 1;
 
+   /* NB: We receive window configure sizes based on xdg surface
+    * window geometry, so we need to subtract framespace here */
+
    evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
+
    if (ECORE_EVAS_PORTRAIT(ee))
      {
         nw -= fw;

-- 


Reply via email to