From 8d222f3cdda7fce98965bee53dc13ada137059f6 Mon Sep 17 00:00:00 2001 From: "jiin.moon" Date: Thu, 11 Jan 2018 15:02:11 +0900 Subject: [PATCH] elm_win: if the type of win is TOOLTIP, unset the input event area 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index c17244a..04976bd 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -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); -- 2.7.4