From: Jaehyun Cho Date: Thu, 6 Jul 2017 02:30:22 +0000 (+0900) Subject: Revert "eext_events: Fix to call elm_win's event callback first." X-Git-Tag: submit/tizen/20170713.122748~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba8ffe065f573a07d43c838f741831c8485fba21;p=platform%2Fcore%2Fuifw%2Fefl-ext.git Revert "eext_events: Fix to call elm_win's event callback first." This reverts commit 3746074d3f88784d35bd7536f984e0df15ff7c92. Change-Id: I40e91e7402d7e309ee0d91a6332a37adabfe1d56 --- diff --git a/src/efl_extension_events.c b/src/efl_extension_events.c index a58827b..9c123b0 100644 --- a/src/efl_extension_events.c +++ b/src/efl_extension_events.c @@ -129,49 +129,21 @@ _eext_top_parent_candidates(Eina_List **candidates, Evas *e) obj_event->parent = parent; } - /* The last smart parent of all elementary widgets except elm_win is frame - * object (edje) of elm_win. - * - * Until Tizen 2.4, evas_object_top_get() has always returned elm_win. - * As a result, until Tizen 2.4, elm_win was always found as the top parent. - * - * However, since Tizen 3.0, evas_object_top_get() returns frame object - * (edje) of elm_win. (elm_win is below than its frame object.) - * - * To support backward compatibility, if any obj_event has elm_win as its - * parent, elm_win is found as the top parent. - */ - EINA_LIST_FOREACH(_candidates, l, obj_event) - { - const char *type = evas_object_type_get(obj_event->parent); - if (type && - !strncmp(type, "elm_win", strlen(type))) - { - parent = obj_event->parent; - obj_event->parent = NULL; - found = EINA_TRUE; - } - } + //Leave only parent candidates. + parent = evas_object_top_get(e); - //If no obj_event has elm_win as its parent, find top parent from top. - if (!found) + while (parent) { - //Leave only parent candidates. - parent = evas_object_top_get(e); - - while (parent) + EINA_LIST_FOREACH(_candidates, l, obj_event) { - EINA_LIST_FOREACH(_candidates, l, obj_event) + if (parent == obj_event->parent) { - if (parent == obj_event->parent) - { - found = EINA_TRUE; - obj_event->parent = NULL; - } + found = EINA_TRUE; + obj_event->parent = NULL; } - if (found) break; - parent = evas_object_below_get(parent); } + if (found) break; + parent = evas_object_below_get(parent); } //Redundant parents (no candidates)