devilhorns pushed a commit to branch master.

commit 6337b639778f621075f0d29f7a2594e91ef60e45
Author: Chris Michael <[email protected]>
Date:   Wed Aug 21 08:27:45 2013 +0100

    When updating window size, if the stored allocation size is the same
    as being set, then get out.
    
    This reduces unnecessary calls to resetting the input & opaque regions
    if nothing has changed in terms of size.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wayland/ecore_wl_window.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index 5f4b56c..54ab599 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -457,6 +457,9 @@ ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, 
int h)
 
    if (!win) return;
 
+   if ((win->allocation.w == w) && (win->allocation.h == h))
+     return;
+
    win->allocation.w = w;
    win->allocation.h = h;
 

-- 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

Reply via email to