summaryrefslogtreecommitdiff
blob: 3c1284108b20e30c2e0191a2a267ec78710ad370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From d74e7dce1d333107760a8ae8d2bdd7521d31a09f Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
Date: Sat, 28 May 2022 03:37:14 +0200
Subject: [PATCH] screencast: When we stop a stream, do it actively

We were just forgetting about it.


(cherry picked from commit aa531bde14a13521f99ae8e44d6e83bc8749d761)
---
 src/waylandintegration.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/waylandintegration.cpp b/src/waylandintegration.cpp
index b1b2d4d..44d862a 100644
--- a/src/waylandintegration.cpp
+++ b/src/waylandintegration.cpp
@@ -328,6 +328,7 @@ void WaylandIntegration::WaylandIntegrationPrivate::stopStreaming(uint32_t nodei
 {
     for (auto it = m_streams.begin(), itEnd = m_streams.end(); it != itEnd; ++it) {
         if (it->nodeId == nodeid) {
+            it->close();
             m_streams.erase(it);
             break;
         }
-- 
GitLab