Remove softkey hack 17/283217/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20221109.213829 submit/tizen_6.0/20221109.030506
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 20 Oct 2022 09:37:12 +0000 (11:37 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Thu, 20 Oct 2022 09:37:14 +0000 (11:37 +0200)
This patch leverages the newly added e_client_under_position_input_get()
to consider input regions in a generic manner.

Change-Id: I6b34080c16830d511d6134bbf5fcd74e5eb7556a

src/e_mod_main.c

index 811857d..0f31b43 100644 (file)
@@ -241,26 +241,7 @@ int _e_mod_atspi_dbus_broadcast(Gesture_Info *gi)
     }
 //
 
-   E_Client *client = e_client_under_position_get(desk, gi->x_beg, gi->y_beg, NULL);
-
-   //PRODUCT_ONLY(20221011): Softkey hack
-   if (client && !e_util_strcmp("Softkey", e_client_util_name_get(client)))
-     {
-        Eina_Bool exclude = EINA_TRUE;
-        Eina_List *list = NULL;
-        Eina_Rectangle *rect;
-
-        e_comp_object_input_rect_get(client->frame, &list);
-        EINA_LIST_FREE(list, rect)
-          {
-             if (E_INSIDE(gi->x_beg, gi->y_beg, rect->x, rect->y, rect->w, rect->h))
-               exclude = EINA_FALSE;
-          }
-
-        if (exclude)
-          client = e_client_under_position_get(desk, gi->x_beg, gi->y_beg, client);
-     }
-   //
+   E_Client *client = e_client_under_position_input_get(desk, gi->x_beg, gi->y_beg);
    if (!client) return -1;
    uint32_t resID = e_pixmap_res_id_get(client->pixmap);