13#include <qwayland-server-wp-primary-selection-unstable-v1.h>
15static const int s_version = 1;
32 : QtWaylandServer::zwp_primary_selection_device_manager_v1(*d, s_version)
39 wl_resource *data_source_resource = wl_resource_create(resource->client(), &zwp_primary_selection_source_v1_interface, resource->version(),
id);
40 if (!data_source_resource) {
41 wl_resource_post_no_memory(resource->handle);
56 wl_resource *data_device_resource = wl_resource_create(resource->client(), &zwp_primary_selection_device_v1_interface, resource->version(),
id);
57 if (!data_device_resource) {
58 wl_resource_post_no_memory(resource->handle);
67 wl_resource_destroy(resource->handle);
79#include "moc_primaryselectiondevicemanager_v1.cpp"
Class holding the Wayland server display loop.
Represents the Global for zwp_primary_selection_manager_v1 interface.
~PrimarySelectionDeviceManagerV1Interface()
PrimarySelectionDeviceManagerV1Interface(Display *display, QObject *parent=nullptr)
void dataDeviceCreated(KWin::PrimarySelectionDeviceV1Interface *dataDevice)
void dataSourceCreated(KWin::PrimarySelectionSourceV1Interface *dataSource)
void zwp_primary_selection_device_manager_v1_destroy(Resource *resource) override
void zwp_primary_selection_device_manager_v1_create_source(Resource *resource, uint32_t id) override
void zwp_primary_selection_device_manager_v1_get_device(Resource *resource, uint32_t id, wl_resource *seat) override
PrimarySelectionDeviceManagerV1Interface * q
PrimarySelectionDeviceManagerV1InterfacePrivate(PrimarySelectionDeviceManagerV1Interface *q, Display *d)
Represents the Resource for the wl_data_device interface.
Represents the Resource for the zwp_primary_selection_source_v1 interface. Lifespan is mapped to the ...
Represents a Seat on the Wayland Display.
static SeatInterface * get(wl_resource *native)