accepted
This fixes an issue where in wl dnd, if one mimetype was accepted by a
drop, then all subsequent types would have been accepted also..
@fix
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
doaccept = EINA_FALSE;
for (i = 0; i < ev->num_types; i++)
{
- doaccept |= _wl_drops_accept(ev->types[i]);
- if (doaccept)
- wl_data_offer_accept(ev->offer, ev->serial, ev->types[i]);
+ if (_wl_drops_accept(ev->types[i]))
+ {
+ doaccept = EINA_TRUE;
+ wl_data_offer_accept(ev->offer, ev->serial, ev->types[i]);
+ }
}
+
if (!doaccept)
wl_data_offer_accept(ev->offer, ev->serial, NULL);