diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 028192503..181cd9b33 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -297,6 +297,9 @@ void CScreencopyProtocolManager::onRenderEnd(CMonitor* pMonitor) { continue; } + if (f->pMonitor != pMonitor) + continue; + shareFrame(f); framesToRemove.push_back(f); @@ -408,4 +411,4 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) { // todo Debug::log(ERR, "DMABUF copying not impl'd!"); return false; -} \ No newline at end of file +}