diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-05-12 12:08:32 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-05-12 12:08:25 -0400 |
commit | 9f698822118682aacf3a6a958b621f0ef9053967 (patch) | |
tree | d4e999feb28a137b5d0bd421b4a93943054dba70 | |
parent | 2e5251b36431e162fdb309c364661de2f80179b3 (diff) | |
download | efl-9f698822118682aacf3a6a958b621f0ef9053967.tar.gz |
ecore-wl2: do not offer a null mime first in ecore_wl2_offer_mimes_set()
this seems to have been done to account for the case where no mimes were
passed, but sending null in this way is bad behavior for a client. the
spec indicates that null should be sent only when no mimes are accepted
@fix
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_dnd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c b/src/lib/ecore_wl2/ecore_wl2_dnd.c index 830ca4e212..76e1459c5f 100644 --- a/src/lib/ecore_wl2/ecore_wl2_dnd.c +++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c @@ -738,9 +738,10 @@ ecore_wl2_offer_mimes_set(Ecore_Wl2_Offer *offer, Eina_Array *mimes) { EINA_SAFETY_ON_NULL_RETURN(offer); - wl_data_offer_accept(offer->offer, offer->serial, NULL); if (mimes) eina_array_foreach(mimes, _emit_mime, offer); + else + wl_data_offer_accept(offer->offer, offer->serial, NULL); } typedef struct { |