mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-03 21:09:48 +01:00
screencopy: fix read on incorrect monitor render
This commit is contained in:
parent
c2a85c9d36
commit
50876f1b15
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue