renderer: fix crash on mirrored outputs needing recalc (#13534)

ref https://github.com/hyprwm/Hyprland/discussions/13517
This commit is contained in:
Vaxry 2026-03-03 11:25:58 +00:00 committed by GitHub
parent 4f44df7b17
commit ff0b706ea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1305,7 +1305,8 @@ void CHyprRenderer::renderMonitor(PHLMONITOR pMonitor, bool commit) {
if (pMonitor->m_scheduledRecalc) {
pMonitor->m_scheduledRecalc = false;
pMonitor->m_activeWorkspace->m_space->recalculate();
if (pMonitor->m_activeWorkspace) // might be missing (mirror)
pMonitor->m_activeWorkspace->m_space->recalculate();
}
if (!pMonitor->m_output->needsFrame && pMonitor->m_forceFullFrames == 0)