From f3c49c1295126c2154ee800ceedb48b79451840c Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 2 Jan 2025 21:58:23 +0100 Subject: [PATCH] pass: ignore empty rectangles queued ref #8935 --- src/render/pass/RectPassElement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/pass/RectPassElement.cpp b/src/render/pass/RectPassElement.cpp index 73727e5858e..25a550b3b46 100644 --- a/src/render/pass/RectPassElement.cpp +++ b/src/render/pass/RectPassElement.cpp @@ -6,6 +6,9 @@ CRectPassElement::CRectPassElement(const CRectPassElement::SRectData& data_) : d } void CRectPassElement::draw(const CRegion& damage) { + if (data.box.w <= 0 || data.box.h <= 0) + return; + if (data.color.a == 1.F || !data.blur) g_pHyprOpenGL->renderRectWithDamage(&data.box, data.color, damage, data.round); else