From ef0d97153ac121a75be1478808123ab8e7cdf4de Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:07:41 +0200 Subject: [PATCH] xdgoutput: manually destroy manager resource --- src/protocols/XDGOutput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/XDGOutput.cpp b/src/protocols/XDGOutput.cpp index 274f6a19..99d3c34a 100644 --- a/src/protocols/XDGOutput.cpp +++ b/src/protocols/XDGOutput.cpp @@ -9,7 +9,7 @@ static void destroyManagerResource(wl_client* client, wl_resource* resource) { ((CXDGOutputProtocol*)wl_resource_get_user_data(resource))->onManagerResourceDestroy(resource); - // will be destroyed by the destruction of the unique_ptr + wl_resource_destroy(resource); } static void destroyOutputResource(wl_client* client, wl_resource* resource) { @@ -45,7 +45,7 @@ void CXDGOutputProtocol::onOutputResourceDestroy(wl_resource* res) { } void CXDGOutputProtocol::bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id) { - const auto RESOURCE = m_vManagerResources.emplace_back(std::make_unique(client, &zxdg_output_manager_v1_interface, ver, id, true)).get(); + const auto RESOURCE = m_vManagerResources.emplace_back(std::make_unique(client, &zxdg_output_manager_v1_interface, ver, id, false)).get(); if (!RESOURCE->good()) { Debug::log(LOG, "Couldn't bind XDGOutputMgr");