Client: Call wl_output_release() upon QWaylandScreen destruction

It ensures that the proxy gets destroyed.

Change-Id: I915cc8814e33dd3b0405b2bf82bd12ce6b5f785b
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Vlad Zahorodnii 2022-11-21 18:39:40 +02:00
parent b2c0a783d0
commit f2f98a1181

View File

@ -44,6 +44,8 @@ QWaylandScreen::~QWaylandScreen()
{
if (zxdg_output_v1::isInitialized())
zxdg_output_v1::destroy();
if (wl_output::isInitialized() && wl_output::version() >= WL_OUTPUT_RELEASE_SINCE_VERSION)
wl_output::release();
}
uint QWaylandScreen::requiredEvents() const