ecore-wl: Optimize setting of window input region

@bugfix: Store the input region into the window structure, and don't
re-add a duplicate input region (done by comparison of saved region).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-04-09 09:41:02 +01:00
parent dba35d942d
commit f0e90d25e3
1 changed files with 11 additions and 0 deletions

View File

@ -602,6 +602,17 @@ ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int
if (!win) return;
win->input.x = x;
win->input.y = y;
if ((w > 0) && (h > 0))
{
if ((win->input.w == w) && (win->input.h == h))
return;
win->input.w = w;
win->input.h = h;
}
if ((win->type != ECORE_WL_WINDOW_TYPE_FULLSCREEN) ||
(win->type != ECORE_WL_WINDOW_TYPE_DND))
{