diff options
author | vaxerski <[email protected]> | 2023-03-16 16:32:03 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-16 16:32:03 +0000 |
commit | e77ebec62990db725a67267582d1b84cefa11497 (patch) | |
tree | ca5054525460ba097347b3edb2ebd44926ddb4b3 | |
parent | 162f23597272a472d4a70f3069f60fd77ea9734b (diff) | |
download | Hyprland-e77ebec62990db725a67267582d1b84cefa11497.tar.gz Hyprland-e77ebec62990db725a67267582d1b84cefa11497.zip |
monitors: guard output in damageSurface
-rw-r--r-- | src/render/Renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |