Revert "eext_events: Fix to call elm_win's event callback first." 39/137439/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 6 Jul 2017 02:30:22 +0000 (11:30 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 6 Jul 2017 02:30:30 +0000 (11:30 +0900)
This reverts commit 3746074d3f88784d35bd7536f984e0df15ff7c92.

Change-Id: I40e91e7402d7e309ee0d91a6332a37adabfe1d56

src/efl_extension_events.c

index a58827b72611f0ea34e1bb9636e2a7306ba31f45..9c123b0f6c2dc7f58387ae7e69cf829459c1f1dd 100644 (file)
@@ -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)