devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=568f3cf6177f86e0e2b3ed5cfdf5373a2bc98397

commit 568f3cf6177f86e0e2b3ed5cfdf5373a2bc98397
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Sep 25 10:39:31 2015 -0400

    ecore-wl2: Raise event for dnd leave
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_dnd.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c 
b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index e3545a2..ac315d6 100644
--- a/src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c
@@ -95,7 +95,17 @@ _ecore_wl2_dnd_enter(Ecore_Wl2_Input *input, struct 
wl_data_offer *offer, struct
 void
 _ecore_wl2_dnd_leave(Ecore_Wl2_Input *input)
 {
-   /* TODO: raise dnd leave event */
+   Ecore_Wl2_Event_Dnd_Leave *ev;
+
+   ev = calloc(1, sizeof(Ecore_Wl2_Event_Dnd_Leave));
+   if (!ev) return;
+
+   if (input->focus.pointer)
+     ev->win = input->focus.pointer->id;
+   if (input->focus.keyboard)
+     ev->source = input->focus.keyboard->id;
+
+   ecore_event_add(ECORE_WL2_EVENT_DND_LEAVE, ev, NULL, NULL);
 }
 
 void

-- 


Reply via email to