diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 19:11:30 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 19:11:30 +0100 |
| commit | 50876f1b15b08c9a170067533b12143fa6512d0e (patch) | |
| tree | 667b32ef2dee44c77e11f5930d09407be09870bc /src/protocols/Screencopy.cpp | |
| parent | c2a85c9d367781e91c8a48d1c9bf401866eb2ac2 (diff) | |
screencopy: fix read on incorrect monitor render
Diffstat (limited to 'src/protocols/Screencopy.cpp')
| -rw-r--r-- | src/protocols/Screencopy.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 02819250..181cd9b3 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 +} |
