summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorDominick DiMaggio <ddimaggio324@gmail.com>2025-10-26 14:57:20 -0400
committerGitHub <noreply@github.com>2025-10-26 18:57:20 +0000
commit17d0d696be10dfe1eada0924480ba6d027dcef70 (patch)
tree13a6ecf8f825376bc8b23338aef00e434fddffa3 /src/protocols/Screencopy.cpp
parent88e34d7dd2b3d45da8b7f4c85e18810a472fa172 (diff)
screencopy: wait longer to re-enable DS (#12135)
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index 80538623..687c4045 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -513,6 +513,10 @@ void CScreencopyProtocol::destroyResource(CScreencopyFrame* frame) {
void CScreencopyProtocol::onOutputCommit(PHLMONITOR pMonitor) {
if (m_framesAwaitingWrite.empty()) {
+ for (auto client : m_clients) {
+ if (client->m_framesInLastHalfSecond > 0)
+ return;
+ }
g_pHyprRenderer->m_directScanoutBlocked = false;
return; // nothing to share
}