From e77ebec62990db725a67267582d1b84cefa11497 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 16 Mar 2023 16:32:03 +0000 Subject: monitors: guard output in damageSurface --- src/render/Renderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 6c524730..00aaa636 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -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); -- cgit v1.2.3