e_comp_wl: do not send a poiner leave event when a touch down is occurred 36/211036/2
authorjeon <jhyuni.kang@samsung.com>
Mon, 29 Jul 2019 07:21:26 +0000 (16:21 +0900)
committerJeongHyun Kang <jhyuni.kang@samsung.com>
Mon, 29 Jul 2019 11:33:16 +0000 (11:33 +0000)
Change-Id: I0e9b50c9f2eca3e1f625537c95fd736e03f984fc

src/bin/e_comp_wl.c

index ca88cefb4fbdc47a388bad605cdc25e89ad703f6..be0a614a06547754cbdd2bd5120ef13e459166f7 100644 (file)
@@ -48,7 +48,6 @@ typedef struct _E_Comp_Wl_Key_Data
 
 static Eina_List *handlers = NULL;
 static E_Client *cursor_timer_ec = NULL;
-static Eina_Bool need_send_leave = EINA_TRUE;
 static Eina_Bool need_send_released = EINA_FALSE;
 static Eina_Bool need_send_motion = EINA_TRUE;
 
@@ -1216,28 +1215,6 @@ _e_comp_wl_evas_handle_mouse_button_to_touch(E_Client *ec, uint32_t timestamp, i
    _e_comp_wl_send_touch(ec, 0, canvas_x, canvas_y, timestamp, flag);
 }
 
-static void
-_e_comp_wl_send_mouse_out(E_Client *ec)
-{
-   struct wl_resource *res;
-   struct wl_client *wc;
-   uint32_t serial;
-   Eina_List *l;
-
-   if (!ec) return;
-   if (e_object_is_del(E_OBJECT(ec))) return;
-   if (!ec->comp_data || !ec->comp_data->surface) return;
-
-   wc = wl_resource_get_client(ec->comp_data->surface);
-   serial = wl_display_next_serial(e_comp_wl->wl.disp);
-   EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
-     {
-        if (!e_comp_wl_input_pointer_check(res)) continue;
-        if (wl_resource_get_client(res) != wc) continue;
-        wl_pointer_send_leave(res, serial, ec->comp_data->surface);
-     }
-}
-
 static void
 _e_comp_wl_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
@@ -1293,16 +1270,8 @@ _e_comp_wl_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
    focused = e_client_focused_get();
    if ((focused) && (ec != focused))
      {
-        if (need_send_leave)
-          {
-             need_send_leave = EINA_FALSE;
-             _e_comp_wl_device_send_event_device(focused, dev, ev->timestamp);
-             _e_comp_wl_send_mouse_out(focused);
-          }
         e_focus_event_mouse_down(ec);
      }
-   else
-     need_send_leave = EINA_TRUE;
 }
 
 static void