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:
parent
88e34d7dd2
commit
17d0d696be
@ -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…
x
Reference in New Issue
Block a user