Softkey hack 91/282791/1 accepted/tizen/6.0/unified/20221012.005822 submit/tizen_6.0/20221011.130820
authorArtur Świgoń <a.swigon@samsung.com>
Tue, 11 Oct 2022 12:40:22 +0000 (14:40 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Tue, 11 Oct 2022 12:46:31 +0000 (14:46 +0200)
Change-Id: If046f5d8b8383709427dd8df3e00a9a3f12b55e9

src/e_mod_main.c

index ecf8ed1..17ef559 100644 (file)
@@ -239,6 +239,26 @@ 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 (!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);
+     }
+   //
+
    uint32_t resID = e_pixmap_res_id_get(client->pixmap);
 
    // Ensure that there is at least one 'ongoing' signal before 'end' in two-finger hover