Skip to content

Commit 4c1a33f

Browse files
committed
screencopy: wait longer to re-enable DS
1 parent 6ea4769 commit 4c1a33f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/protocols/Screencopy.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ void CScreencopyProtocol::destroyResource(CScreencopyFrame* frame) {
513513

514514
void CScreencopyProtocol::onOutputCommit(PHLMONITOR pMonitor) {
515515
if (m_framesAwaitingWrite.empty()) {
516+
for (auto client : m_clients) {
517+
if (client->m_framesInLastHalfSecond > 0)
518+
return;
519+
}
516520
g_pHyprRenderer->m_directScanoutBlocked = false;
517521
return; // nothing to share
518522
}

0 commit comments

Comments
 (0)