monitors: guard output in damageSurface

This commit is contained in:
vaxerski 2023-03-16 16:32:03 +00:00
parent 162f235972
commit e77ebec629

View file

@ -1031,6 +1031,9 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) {
pixman_region32_init(&damageBoxForEach);
for (auto& m : g_pCompositor->m_vMonitors) {
if (!m->output)
continue;
double lx = 0, ly = 0;
wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, m->output, &lx, &ly);