screencopy: fix possible crash in renderMon()

This commit is contained in:
Vaxry 2025-11-12 22:43:46 +00:00
parent 308226a4fc
commit b77cbad502
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -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) {