bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=12eb732d46d1291df60b65f8b5fb748e7984a582

commit 12eb732d46d1291df60b65f8b5fb748e7984a582
Author: Marcel Hollerbach <[email protected]>
Date:   Tue Jun 28 16:46:51 2016 +0200

    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");

-- 


Reply via email to