summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>2022-11-21 18:39:40 +0200
committerVlad Zahorodnii <vlad.zahorodnii@kde.org>2022-11-22 10:47:44 +0200
commit054e54759dbd6c3e76b55d5c4a9a54f62967ad1a (patch)
tree6609452f8a027186039fcef2ad46447e446b760d
parent0c1cbb376e0cf878e3a91ab4917fe784a3b4c547 (diff)
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>
-rw-r--r--src/client/qwaylandscreen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index 4f75d205a..7239f869a 100644
--- a/src/client/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
@@ -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