mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 19:45:58 +01:00
screencopy: nullcheck for empty buffer
This commit is contained in:
parent
0ba28a46fd
commit
16fd9084ea
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ void CScreencopyProtocolManager::shareAllFrames(CMonitor* pMonitor, bool dmabuf)
|
|||
|
||||
// share frame if correct output
|
||||
for (auto& f : m_vFramesAwaitingWrite) {
|
||||
if (!f->pMonitor) {
|
||||
if (!f->pMonitor || !f->buffer) {
|
||||
framesToRemove.push_back(f);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue