If the window opaque/input regions already match what is being
requested (to be set), then no need for the compositor to create
regions and set them.
@optimize
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
EINA_SAFETY_ON_NULL_RETURN(window);
+ if ((window->opaque.x == x) && (window->opaque.y == y) &&
+ (window->opaque.w == w) && (window->opaque.h == h))
+ return;
+
window->opaque.x = x;
window->opaque.y = y;
window->opaque.w = w;
EINA_SAFETY_ON_NULL_RETURN(window);
+ if ((window->input_rect.x == x) && (window->input_rect.y == y) &&
+ (window->input_rect.w == w) && (window->input_rect.h == h))
+ return;
+
window->input_rect.x = x;
window->input_rect.y = y;
window->input_rect.w = w;