devilhorns pushed a commit to branch master.

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

commit b71410972e28ce0394369804c9d6a1710fc06df4
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Oct 12 14:06:48 2015 -0400

    ecore-evas-wayland: Trap for subsequent resize events
    
    Summary: If we have already resized this ecore_evas to be what we
    want, then there is no point in running the below resize code as we
    should already be at the requested size. Add a test at the beginning
    to see if we have already set these values
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 a081f47..379dcb1 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
@@ -168,7 +168,6 @@ _ecore_evas_wl_common_cb_window_configure(void *data 
EINA_UNUSED, int type EINA_
    Ecore_Evas_Engine_Wl_Data *wdata;
    Ecore_Wl_Event_Window_Configure *ev;
    int nw = 0, nh = 0;
-   int fw = 0, fh = 0;
    Eina_Bool prev_max, prev_full;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -476,6 +475,8 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
    if (w < 1) w = 1;
    if (h < 1) h = 1;
 
+   if ((ee->req.w == w) && (ee->req.h == h)) return;
+
    ee->req.w = w;
    ee->req.h = h;
    orig_w = w;

-- 


Reply via email to