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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-21 08:27:45 +01:00
parent ffa9d69180
commit 6337b63977
1 changed files with 3 additions and 0 deletions

View File

@ -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;