finish xwl dnd operation immediately if drop occurred somehow

This commit is contained in:
Mike Blumenkrantz 2015-08-11 16:03:01 -04:00
parent 8ea4b9b4e9
commit dcc22aa27c
1 changed files with 2 additions and 2 deletions

View File

@ -88,11 +88,11 @@ _xwayland_dnd_finish(void)
}
static void
_xwayland_drop(E_Drag *drag, int dropped EINA_UNUSED)
_xwayland_drop(E_Drag *drag, int dropped)
{
if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return;
e_comp->wl_comp_data->drag = NULL;
if (e_object_is_del(E_OBJECT(drag)) || (!e_comp->wl_comp_data->selection.target))
if (dropped || e_object_is_del(E_OBJECT(drag)) || (!e_comp->wl_comp_data->selection.target))
_xdnd_finish(0);
else
{