forked from enlightenment/efl
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:
parent
ffa9d69180
commit
6337b63977
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue