From: Junseok Kim Date: Wed, 26 Jul 2023 12:48:18 +0000 (+0900) Subject: e_comp_wl: use e_drag_move to move drag window X-Git-Tag: accepted/tizen/unified/20230803.034113~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1efd3dd5b0e7cce7d2eec57a394c1d80e59d3c73;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: use e_drag_move to move drag window Change-Id: I391dd70620ef3390b3fe4d220c3349af6b581812 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 3054773..11b77ae 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2481,7 +2481,6 @@ _e_comp_wl_cb_mouse_move(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Mou { struct wl_resource *res; int x, y; - int drag_x, drag_y; E_Client *ec = NULL; E_Client *legacy_target = e_comp_wl->selection.target; int device_id = e_comp_wl_data_current_device_id_get(); @@ -2512,12 +2511,8 @@ _e_comp_wl_cb_mouse_move(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Mou x = ev->x - ec->client.x; y = ev->y - ec->client.y; - if (e_comp_wl->drag_client) - { - drag_x = ev->x + e_comp_wl->drag->dx; - drag_y = ev->y + e_comp_wl->drag->dy; - evas_object_move(e_comp_wl->drag_client->frame, drag_x, drag_y); - } + if (e_comp_wl->drag) + e_drag_move(e_comp_wl->drag, x, y); wl_data_device_send_motion(res, ev->timestamp, wl_fixed_from_int(x), wl_fixed_from_int(y)); }