screencopy: wait longer to re-enable DS (#12135)

This commit is contained in:
Dominick DiMaggio 2025-10-26 14:57:20 -04:00 committed by GitHub
parent 88e34d7dd2
commit 17d0d696be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}