elm_win: if the type of win is TOOLTIP, unset the input event area 18/166618/2
authorjiin.moon <jiin.moon@samsung.com>
Thu, 11 Jan 2018 06:02:11 +0000 (15:02 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 11 Jan 2018 07:53:28 +0000 (07:53 +0000)
 If the type of win is tooltip, have to send the input event to below window.
 This is tizen_only because ecore_evas_input_rect_set api is exist only in tizen.

 @tizen_only

Change-Id: I105527c7e9bf2238ee95ecfb44e6bfa272c1766e

src/lib/elementary/efl_ui_win.c

index c17244a..04976bd 100644 (file)
@@ -3321,6 +3321,19 @@ _elm_win_obj_intercept_show(void *data,
    if (sd->pointer.obj) evas_object_show(sd->pointer.obj);
 
    evas_object_show(obj);
+
+/* TIZEN_ONLY: ecore_evas_input_rect_set api is exist only in tizen */
+#ifdef HAVE_ELEMENTARY_WL2
+   int x, y, w, h;
+   Eina_Rectangle input_rect = { -1, -1, 1, 1 };
+
+   evas_object_geometry_get(obj, &x, &y, &w, &h);
+   ecore_wl_window_opaque_region_set(sd->wl.win, x, y, w, h);
+
+   if (sd->type == ELM_WIN_TOOLTIP)
+     ecore_evas_input_rect_set(sd->ee, &input_rect);
+#endif
+
 #ifdef ELEMENTARY_X
    if (sd->type == ELM_WIN_TOOLTIP)
      ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0);