, m_sent_selection_time(0)
{
- static int i = 0;
- qDebug() << "data device" << ++i;
+ //static int i = 0;
+ //qDebug() << "data device" << ++i;
m_data_device_resource =
wl_client_add_object(client,&wl_data_device_interface,&data_device_interface,id, this);
}
DataOffer *data_offer = source->dataOffer();
wl_resource *client_resource =
data_offer->addDataDeviceResource(m_data_device_resource);
- qDebug() << "sending data_offer for source" << source;
+ //qDebug() << "sending data_offer for source" << source;
wl_data_device_send_selection(m_data_device_resource,client_resource);
m_sent_selection_time = source->time();
}
return false;
wl_client *client = clientDataDeviceResource->client;
- qDebug("compositor offers %d types to %p", m_retainedData.formats().count(), client);
+ //qDebug("compositor offers %d types to %p", m_retainedData.formats().count(), client);
struct wl_resource *selectionOffer =
wl_client_new_object(client, &wl_data_offer_interface, &compositor_offer_interface, this);
void DataDeviceManager::comp_receive(wl_client *client, wl_resource *resource, const char *mime_type, int32_t fd)
{
+ Q_UNUSED(client);
DataDeviceManager *self = static_cast<DataDeviceManager *>(resource->data);
- qDebug("client %p wants data for type %s from compositor", client, mime_type);
+ //qDebug("client %p wants data for type %s from compositor", client, mime_type);
QByteArray content = QWaylandMimeHelper::getByteArray(&self->m_retainedData, QString::fromLatin1(mime_type));
if (!content.isEmpty()) {
QFile f;
void DataOffer::destroy(wl_client *client, wl_resource *resource)
{
Q_UNUSED(client);
- qDebug() << "dataOFFER DESTROY!";
DataOffer *data_offer = static_cast<DataOffer *>(resource->data);
if (data_offer->resourceListIsEmpty()) {
DataSource::~DataSource()
{
- qDebug() << "destroying source";
if (m_manager)
m_manager->sourceDestroyed(this);
wl_resource_destroy(m_data_source_resource);
const char *type)
{
Q_UNUSED(client);
- qDebug() << "received offer" << type;
+ //qDebug() << "received offer" << type;
static_cast<DataSource *>(resource->data)->m_offers.append(type);
}