efl selection manager - fix dnd end handling to only handle on dnd

dnd end handling was being done even if no dnd started, like an
ungrab. this caused side effects like stoping selections in their
tracks.

@fix
This commit is contained in:
Carsten Haitzler 2018-04-13 20:39:07 +09:00
parent 803fddea5d
commit eab91edcb2
1 changed files with 3 additions and 0 deletions

View File

@ -2707,6 +2707,9 @@ _wl_dnd_end(void *data, int type EINA_UNUSED, void *event)
if (ev->serial != sel->drag_serial)
return ECORE_CALLBACK_RENEW;
if (seat_sel->active_type != EFL_SELECTION_TYPE_DND)
return ECORE_CALLBACK_RENEW;
efl_event_callback_call(seat_sel->drag_obj, EFL_UI_DND_EVENT_DRAG_DONE, NULL);
if (seat_sel->drag_win)
{