devilhorns pushed a commit to branch master.

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

commit e04ab79ecc966ac86886c25b9f52477f3ecd923a
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Sep 25 10:51:43 2015 -0400

    ecore-wl2: Raise dnd drop event when we get the event from the data
    listener
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_dnd.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c 
b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index 4909142..4a20098 100644
--- a/src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c
@@ -134,7 +134,23 @@ _ecore_wl2_dnd_motion(Ecore_Wl2_Input *input, int x, int 
y, unsigned int timesta
 void
 _ecore_wl2_dnd_drop(Ecore_Wl2_Input *input)
 {
-   /* TODO: raise dnd drop event */
+   Ecore_Wl2_Event_Dnd_Drop *ev;
+
+   ev = calloc(1, sizeof(Ecore_Wl2_Event_Dnd_Drop));
+   if (!ev) return;
+
+   if (input->drag.source)
+     {
+        if (input->focus.pointer)
+          ev->win = input->focus.pointer->id;
+        if (input->focus.keyboard)
+          ev->source = input->focus.keyboard->id;
+     }
+
+   ev->x = input->pointer.sx;
+   ev->y = input->pointer.sy;
+
+   ecore_event_add(ECORE_WL2_EVENT_DND_DROP, ev, NULL, NULL);
 }
 
 void

-- 


Reply via email to