diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-11-12 22:43:46 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-11-12 22:43:46 +0000 |
| commit | b77cbad50251f0506b61d834b025247dcf74dddf (patch) | |
| tree | 4681840056cdaad7e3572aa2e5707590cfad12e2 /src/protocols/Screencopy.cpp | |
| parent | 308226a4fc2c9b63fa19894d5f85e79e05d75e03 (diff) | |
screencopy: fix possible crash in renderMon()
Diffstat (limited to 'src/protocols/Screencopy.cpp')
| -rw-r--r-- | src/protocols/Screencopy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 1b47fb66..e2a32c91 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -246,7 +246,8 @@ void CScreencopyFrame::renderMon() { const auto geom = l->m_geometry; const Vector2D popupBaseOffset = REALPOS - Vector2D{geom.pos().x, geom.pos().y}; - l->m_popupHead->breadthfirst(hidePopups(popupBaseOffset), nullptr); + if (l->m_popupHead) + l->m_popupHead->breadthfirst(hidePopups(popupBaseOffset), nullptr); } for (auto const& w : g_pCompositor->m_windows) { |
