From: Chris Michael Date: Fri, 25 Sep 2015 14:39:31 +0000 (-0400) Subject: ecore-wl2: Raise event for dnd leave X-Git-Tag: upstream/1.20.0~8008^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=568f3cf6177f86e0e2b3ed5cfdf5373a2bc98397;p=platform%2Fupstream%2Fefl.git ecore-wl2: Raise event for dnd leave Signed-off-by: Chris Michael --- 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