mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-06 07:30:09 +01:00
parent
1d3904c3e7
commit
3d1dd6b5c7
1 changed files with 5 additions and 0 deletions
|
|
@ -130,6 +130,11 @@ void CPresentationProtocol::onPresented(PHLMONITOR pMonitor, timespec* when, uin
|
|||
}
|
||||
}
|
||||
|
||||
if (m_vFeedbacks.size() > 10000 /* arbitrary number I chose as fitting */) {
|
||||
LOGM(ERR, "FIXME: presentation has a feedback leak, and has grown to {} pending entries!!! Dropping!!!!!", m_vFeedbacks.size());
|
||||
m_vFeedbacks = {m_vFeedbacks.begin() + 9000, m_vFeedbacks.end()};
|
||||
}
|
||||
|
||||
std::erase_if(m_vFeedbacks, [](const auto& other) { return !other->surface || other->done; });
|
||||
std::erase_if(m_vQueue, [pMonitor](const auto& other) { return !other->surface || other->pMonitor == pMonitor || !other->pMonitor || other->done; });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue