static void data_offer_accept (struct wl_client *client, struct wl_resource *resource, guint32 serial, const char *mime_type) { MetaWaylandDataOffer *offer = wl_resource_get_user_data (resource); /* FIXME: Check that client is currently focused by the input * device that is currently dragging this data source. Should * this be a wl_data_device request? */ if (offer->source) { wl_data_source_send_target (offer->source->resource, mime_type); offer->source->has_target = mime_type != NULL; } }
static void client_source_accept(struct wl_data_source *source, uint32_t time, const char *mime_type) { wl_data_source_send_target(&source->resource, mime_type); }