screencopy: fix isOutputBeingSSd (#13586)
use sessions instead of pending frames
This commit is contained in:
parent
4c60d9df70
commit
972f23efe8
2 changed files with 4 additions and 3 deletions
|
|
@ -153,10 +153,10 @@ WP<CScreenshareSession> CScreenshareManager::getManagedSession(eScreenshareType
|
|||
}
|
||||
|
||||
bool CScreenshareManager::isOutputBeingSSd(PHLMONITOR monitor) {
|
||||
return std::ranges::any_of(m_pendingFrames, [monitor](const auto& f) {
|
||||
if (!f || !f->m_session)
|
||||
return std::ranges::any_of(m_sessions, [monitor](const auto& s) {
|
||||
if (!s)
|
||||
return false;
|
||||
return (f->m_session->m_type == SHARE_MONITOR || f->m_session->m_type == SHARE_REGION) && f->m_session->m_monitor == monitor;
|
||||
return (s->m_type == SHARE_MONITOR || s->m_type == SHARE_REGION) && s->m_monitor == monitor;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2499,6 +2499,7 @@ void CHyprOpenGLImpl::saveBufferForMirror(const CBox& box) {
|
|||
|
||||
renderTexture(m_renderData.currentFB->getTexture(), box,
|
||||
STextureRenderData{
|
||||
.damage = &m_renderData.finalDamage,
|
||||
.a = 1.F,
|
||||
.round = 0,
|
||||
.discardActive = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue