13static constexpr uint32_t s_version = 1;
21 void wp_tearing_control_manager_v1_destroy(Resource *resource)
override;
22 void wp_tearing_control_manager_v1_get_tearing_control(Resource *resource, uint32_t
id, struct ::wl_resource *surface)
override;
32 void wp_tearing_control_v1_set_presentation_hint(Resource *resource, uint32_t hint)
override;
33 void wp_tearing_control_v1_destroy(Resource *resource)
override;
34 void wp_tearing_control_v1_destroy_resource(Resource *resource)
override;
36 const QPointer<SurfaceInterface> m_surface;
48 : QtWaylandServer::wp_tearing_control_manager_v1(*display, s_version)
52void TearingControlManagerV1InterfacePrivate::wp_tearing_control_manager_v1_destroy(Resource *resource)
54 wl_resource_destroy(resource->handle);
57void TearingControlManagerV1InterfacePrivate::wp_tearing_control_manager_v1_get_tearing_control(Resource *resource, uint32_t
id, struct ::wl_resource *wlSurface)
61 wl_resource_post_error(resource->handle, QtWaylandServer::wp_tearing_control_manager_v1::error_tearing_control_exists,
"Surface already has a wp_surface_tearing_control_v1");
68 : QtWaylandServer::wp_tearing_control_v1(client, id, s_version)
78 surfacePrivate->
pending->presentationModeHintIsSet =
true;
79 surfacePrivate->
tearing =
nullptr;
83void TearingControlV1Interface::wp_tearing_control_v1_set_presentation_hint(Resource *resource, uint32_t hint)
87 if (hint == presentation_hint::presentation_hint_async) {
92 surfacePrivate->
pending->presentationModeHintIsSet =
true;
96void TearingControlV1Interface::wp_tearing_control_v1_destroy(Resource *resource)
98 wl_resource_destroy(resource->handle);
101void TearingControlV1Interface::wp_tearing_control_v1_destroy_resource(Resource *resource)
107#include "moc_tearingcontrol_v1.cpp"
Class holding the Wayland server display loop.
Resource representing a wl_surface.
static SurfaceInterface * get(wl_resource *native)
std::unique_ptr< SurfaceState > pending
static SurfaceInterfacePrivate * get(SurfaceInterface *surface)
TearingControlV1Interface * tearing
TearingControlManagerV1Interface(Display *display, QObject *parent=nullptr)
~TearingControlManagerV1Interface() override
TearingControlManagerV1InterfacePrivate(Display *display)
TearingControlV1Interface(SurfaceInterface *surface, wl_client *client, uint32_t id)
~TearingControlV1Interface()