Add destructor for primary output global

This commit is contained in:
David Edmundson 2022-05-06 12:06:45 +01:00 committed by Vlad Zahorodnii
parent ae1937badc
commit ab06dd2e31

View file

@ -17,7 +17,7 @@
namespace KWaylandServer namespace KWaylandServer
{ {
static const quint32 s_version = 1; static const quint32 s_version = 2;
class PrimaryOutputV1InterfacePrivate : public QtWaylandServer::kde_primary_output_v1 class PrimaryOutputV1InterfacePrivate : public QtWaylandServer::kde_primary_output_v1
{ {
@ -33,6 +33,10 @@ public:
send_primary_output(resource->handle, m_outputName); send_primary_output(resource->handle, m_outputName);
} }
} }
void kde_primary_output_v1_destroy(Resource *resource) override
{
wl_resource_destroy(resource->handle);
}
QString m_outputName; QString m_outputName;
}; };