From 12eb732d46d1291df60b65f8b5fb748e7984a582 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 28 Jun 2016 16:46:51 +0200 Subject: [PATCH] ecore_wl2: use ECORE_WL2_EVENT_DATA_SOURCE_END this event is emited each time the dragging is cancled. So the dragwin should be deleted here. --- src/lib/elementary/elm_cnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c index d261a74..aad7a89 100644 --- a/src/lib/elementary/elm_cnp.c +++ b/src/lib/elementary/elm_cnp.c @@ -3211,7 +3211,7 @@ _wl_elm_dnd_init(void) ecore_event_handler_add(ECORE_WL2_EVENT_SELECTION_DATA_READY, _wl_dnd_receive, &wl_cnp_selection); - ecore_event_handler_add(ECORE_WL2_EVENT_DND_END, + ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_END, _wl_dnd_end, &wl_cnp_selection); return EINA_TRUE; @@ -3667,7 +3667,7 @@ _wl_dnd_receive(void *data, int type EINA_UNUSED, void *event) static Eina_Bool _wl_dnd_end(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) { - Ecore_Wl2_Event_Dnd_End *ev; + Ecore_Wl2_Event_Data_Source_End *ev; Ecore_Wl2_Window *win; cnp_debug("In\n"); -- 2.7.4