3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-10-29 11:22:47 +00:00

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
}