From 6f380488439e7ff83e4785fba482065c9d64ee6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Artur=20=C5=9Awigo=C5=84?= Date: Thu, 20 Oct 2022 11:37:12 +0200 Subject: [PATCH] Remove softkey hack 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 | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 811857d..0f31b43 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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); -- 2.7.4