e_comp_wl: do not send data device send enter/leave on evas mouse in/out callback
authorJunseok Kim <juns.kim@samsung.com>
Thu, 10 Aug 2023 05:44:31 +0000 (14:44 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 18 Aug 2023 05:32:01 +0000 (14:32 +0900)
The wl_data_device_send_enter/leave is called in ecore_mouse_move callback.
For consistency of the drag and drop, remove wl_data_device_send_enter from the evas mouse callback

Change-Id: I0c072b52c67196a4d5286ba2a0379a4d1db90277

src/bin/e_comp_wl.c

index 6ec84b6..7d4311b 100644 (file)
@@ -1229,12 +1229,6 @@ _e_comp_wl_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
    if (!surface) return;
 
    e_comp_wl->ptr.ec = ec;
-   if (e_comp_wl->drag &&
-       e_comp_wl->selection.target != ec)
-     {
-        e_comp_wl_data_device_send_enter(ec);
-        return;
-     }
 
    if (_e_comp_wl_check_cursor_timer_needed(ec))
      {
@@ -1286,13 +1280,6 @@ _e_comp_wl_evas_cb_mouse_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob
    struct wl_resource *surface = e_comp_wl_client_surface_get(ec);
    if (!surface) return;
 
-   if (e_comp_wl->drag &&
-       e_comp_wl->selection.target == ec)
-     {
-        e_comp_wl_data_device_send_leave(ec);
-        return;
-     }
-
    if (_e_comp_wl_check_cursor_timer_needed(ec))
      {
         if (!_e_comp_wl_cursor_timer_control(EVAS_CALLBACK_MOUSE_OUT, ec))