e_comp_wl_input: fixed to update region_pending in locked_pointer_set_region callback 71/292071/1
authorSungjin Park <sj76.park@samsung.com>
Thu, 27 Apr 2023 04:31:14 +0000 (13:31 +0900)
committerSungjin Park <sj76.park@samsung.com>
Thu, 27 Apr 2023 04:32:23 +0000 (13:32 +0900)
Change-Id: I02aae0b8083c4a52258cd236b36edb61597371b6
Signed-off-by: Sungjin Park <sj76.park@samsung.com>
src/bin/e_comp_wl_input.c

index 442c8fcbb58dd295db7bd3206cacef4cf58cfd2c..5d1e622172a8d23362debaab8a2df2d13c965fa4 100644 (file)
@@ -967,15 +967,15 @@ _e_comp_wl_input_cb_locked_pointer_set_region(struct wl_client *client,
           {
              pixman_region32_init(&t_region);
              _e_comp_wl_input_convert_eina_tiler_to_pixman_region32(tiler, &t_region);
-             pixman_region32_copy(&constraint->region, &t_region);
+             pixman_region32_copy(&constraint->region_pending, &t_region);
              pixman_region32_fini(&t_region);
           }
         else
           {
              //CHECKME: check whether this situation is a kind of bug
              ERR("Invalid tiler from region (pointer constraint region!");
-             pixman_region32_fini(&constraint->region);
-             pixman_region32_init_rect(&constraint->region,
+             pixman_region32_fini(&constraint->region_pending);
+             pixman_region32_init_rect(&constraint->region_pending,
                                        INT32_MIN, INT32_MIN,
                                        UINT32_MAX, UINT32_MAX);
           }
@@ -984,8 +984,8 @@ _e_comp_wl_input_cb_locked_pointer_set_region(struct wl_client *client,
      }
    else
      {
-        pixman_region32_fini(&constraint->region);
-        pixman_region32_init_rect(&constraint->region,
+        pixman_region32_fini(&constraint->region_pending);
+        pixman_region32_init_rect(&constraint->region_pending,
                                   INT32_MIN, INT32_MIN,
                                   UINT32_MAX, UINT32_MAX);
      }