{
return e_comp_wl->drag_device_id;
}
+
+EINTERN void
+e_comp_wl_data_offer_mimetype_action_accept(E_Comp_Wl_Data_Offer *offer)
+{
+ E_Comp_Wl_Data_Source *source;
+
+ if (!offer) return;
+
+ source = offer->source;
+ if (!source) return;
+
+ // set all mime type to accepted
+ if (source->mime_types)
+ source->target(source, 0, eina_array_pop(source->mime_types));
+ source->accepted = EINA_TRUE;
+
+ // set all actions to accepted
+ offer->dnd_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE;
+ offer->preferred_dnd_action = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY;
+ _e_comp_wl_data_offer_update_action(offer);
+}
EINTERN Eina_Bool e_comp_wl_data_device_manual_selection_set(void *data, size_t size, Eina_List *mime_list);
EINTERN void e_comp_wl_data_current_device_id_set(int id);
EINTERN int e_comp_wl_data_current_device_id_get(void);
+EINTERN void e_comp_wl_data_offer_mimetype_action_accept(E_Comp_Wl_Data_Offer *offer);
# endif
#endif