ecore-wl2: Actually update input/opaque regions
authorChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 15:12:31 +0000 (10:12 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 15:12:31 +0000 (10:12 -0500)
Previous commit f8f71d05cdc7a8578329f75b0101662220390f20 to avoid resetting
opaque & input regions was not totally complete as it did not update
the actual values...small patch to fix that.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_window.c

index c078ba4..2e09cba 100644 (file)
@@ -881,6 +881,8 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w
 
    EINA_SAFETY_ON_NULL_RETURN(window);
 
+   fprintf(stderr, "Set Opaque Region: %d %d %d %d\n", x, y, w, h);
+
    if ((x == 0) && (y == 0) && (w == 0) && (h == 0))
      {
         if (window->surface)
@@ -922,6 +924,10 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w
        (window->opaque.w == nw) && (window->opaque.h == nh))
      return;
 
+   window->opaque.x = nx;
+   window->opaque.y = ny;
+   window->opaque.w = nw;
+   window->opaque.h = nh;
    window->opaque_set = EINA_TRUE;
 
    if (!window->surface) return;
@@ -947,6 +953,8 @@ ecore_wl2_window_input_region_set(Ecore_Wl2_Window *window, int x, int y, int w,
 
    EINA_SAFETY_ON_NULL_RETURN(window);
 
+   fprintf(stderr, "Set Input Region: %d %d %d %d\n", x, y, w, h);
+
    if ((x == 0) && (y == 0) && (w == 0) && (h == 0))
      {
         if (window->surface)
@@ -988,6 +996,10 @@ ecore_wl2_window_input_region_set(Ecore_Wl2_Window *window, int x, int y, int w,
        (window->input_rect.w == nw) && (window->input_rect.h == nh))
      return;
 
+   window->input_rect.x = nx;
+   window->input_rect.y = ny;
+   window->input_rect.w = nw;
+   window->input_rect.h = nh;
    window->input_set = EINA_TRUE;
 
    if (!window->surface) return;