elm_cnp: do not send null accepts for every type within wl data offers

once is sufficient
This commit is contained in:
Mike Blumenkrantz 2016-04-21 13:56:41 -04:00
parent d36c931fac
commit f6f76bf87f
1 changed files with 3 additions and 3 deletions

View File

@ -2983,12 +2983,12 @@ _wl_dnd_enter(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
doaccept = EINA_FALSE;
for (i = 0; i < ev->num_types; i++)
{
doaccept = _wl_drops_accept(ev->types[i]);
doaccept |= _wl_drops_accept(ev->types[i]);
if (doaccept)
wl_data_offer_accept(ev->offer, ev->serial, ev->types[i]);
else
wl_data_offer_accept(ev->offer, ev->serial, NULL);
}
if (!doaccept)
wl_data_offer_accept(ev->offer, ev->serial, NULL);
return ECORE_CALLBACK_PASS_ON;
}