13#include "qwayland-server-xdg-activation-v1.h"
19static const int s_version = 1;
25 : QtWaylandServer::xdg_activation_token_v1(*client, newId, s_version)
42 struct ::wl_resource *
m_seat =
nullptr;
72 send_done(resource->handle, token);
78 send_done(resource->handle, {});
80 wl_resource_destroy(resource->handle);
92 : QtWaylandServer::xdg_activation_v1(*display, s_version)
121 wl_resource_destroy(resource->handle);
136 d->m_creator = creator;
141#include "moc_xdgactivation_v1.cpp"
Convenient Class which represents a wl_client.
Class holding the Wayland server display loop.
ClientConnection * getConnection(wl_client *client)
static SeatInterface * get(wl_resource *native)
static SurfaceInterface * get(wl_resource *native)
void xdg_activation_token_v1_set_serial(Resource *resource, uint32_t serial, struct ::wl_resource *seat) override
void xdg_activation_token_v1_destroy(Resource *resource) override
void xdg_activation_token_v1_destroy_resource(Resource *resource) override
ClientConnection *const m_client
struct::wl_resource * m_seat
XdgActivationTokenV1Interface(XdgActivationV1Interface::CreatorFunction creator, ClientConnection *client, uint32_t newId)
void xdg_activation_token_v1_commit(Resource *resource) override
void xdg_activation_token_v1_set_surface(QtWaylandServer::xdg_activation_token_v1::Resource *resource, struct ::wl_resource *surface) override
const XdgActivationV1Interface::CreatorFunction m_creator
QPointer< SurfaceInterface > m_surface
void xdg_activation_token_v1_set_app_id(Resource *resource, const QString &app_id) override
XdgActivationV1Interface(Display *display, QObject *parent=nullptr)
std::function< QString(ClientConnection *client, SurfaceInterface *surface, uint serial, SeatInterface *seat, const QString &appId)> CreatorFunction
void setActivationTokenCreator(const CreatorFunction &creator)
Provide the creator function that will be used to create a token given its parameters.
void activateRequested(SurfaceInterface *surface, const QString &token)
Notifies about the surface being activated using token.
~XdgActivationV1Interface() override
XdgActivationV1Interface *const q
XdgActivationV1InterfacePrivate(Display *display, XdgActivationV1Interface *q)
XdgActivationV1Interface::CreatorFunction m_creator
void xdg_activation_v1_get_activation_token(Resource *resource, uint32_t id) override
void xdg_activation_v1_destroy(Resource *resource) override
void xdg_activation_v1_activate(Resource *resource, const QString &token, struct ::wl_resource *surface) override