kill off dnd operation if drop cb returns false

SVN revision: 76722
This commit is contained in:
Mike Blumenkrantz 2012-09-17 04:01:30 +00:00
parent 3dc989c695
commit da524d6d91
1 changed files with 7 additions and 0 deletions

View File

@ -1427,6 +1427,13 @@ _e_dnd_cb_event_dnd_drop(void *data __UNUSED__, int type __UNUSED__, void *event
_xdnd->x = ev->position.x;
_xdnd->y = ev->position.y;
if (!req)
{
_e_drag_xdnd_end(ev->win, _xdnd->x, _xdnd->y);
ecore_x_dnd_send_finished();
eina_stringshare_del(_xdnd->type);
E_FREE(_xdnd);
}
}
return ECORE_CALLBACK_PASS_ON;