screencopy: wait longer to re-enable DS (#12135)
This commit is contained in:
parent
88e34d7dd2
commit
17d0d696be
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue