12#include <qwayland-server-wayland.h>
16static const quint32 s_version = 3;
26 void createDataSource(wl_client *client, wl_resource *resource, uint32_t
id);
27 void getDataDevice(wl_client *client, wl_resource *resource, uint32_t
id, wl_resource *seat);
35 : QtWaylandServer::wl_data_device_manager(*d, s_version)
42 wl_resource *data_source_resource = wl_resource_create(resource->client(), &wl_data_source_interface, resource->version(),
id);
43 if (!data_source_resource) {
44 wl_resource_post_no_memory(resource->handle);
59 wl_resource *data_device_resource = wl_resource_create(resource->client(), &wl_data_device_interface, resource->version(),
id);
60 if (!data_device_resource) {
61 wl_resource_post_no_memory(resource->handle);
78#include "moc_datadevicemanager.cpp"
DataDeviceInterface allows clients to share data by copy-and-paste and drag-and-drop.
Represents the Global for wl_data_device_manager interface.
DataDeviceManagerInterface(Display *display, QObject *parent=nullptr)
void dataDeviceCreated(KWin::DataDeviceInterface *)
void dataSourceCreated(KWin::DataSourceInterface *)
~DataDeviceManagerInterface() override
void data_device_manager_create_data_source(Resource *resource, uint32_t id) override
DataDeviceManagerInterface * q
void data_device_manager_get_data_device(Resource *resource, uint32_t id, wl_resource *seat) override
DataDeviceManagerInterfacePrivate(DataDeviceManagerInterface *q, Display *d)
Represents the Resource for the wl_data_source interface.
Class holding the Wayland server display loop.
Represents a Seat on the Wayland Display.
static SeatInterface * get(wl_resource *native)