From: Marcel Hollerbach Date: Tue, 28 Jun 2016 14:46:51 +0000 (+0200) Subject: ecore_wl2: use ECORE_WL2_EVENT_DATA_SOURCE_END X-Git-Tag: upstream/1.20.0~5473 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12eb732d46d1291df60b65f8b5fb748e7984a582;p=platform%2Fupstream%2Fefl.git 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. --- 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");