Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 10, 2024
1 parent 46daa5b commit f589d2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/render/pass/Pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ CRegion CRenderPass::render(const CRegion& damage_) {

damage = damage_.copy();

if (damage.empty()) {
g_pHyprOpenGL->m_RenderData.damage = damage;
g_pHyprOpenGL->m_RenderData.finalDamage = damage;
return damage;
}

if (WILLBLUR) {
// combine blur regions into one that will be expanded
CRegion blurRegion;
Expand Down
2 changes: 1 addition & 1 deletion src/render/pass/TexPassElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ CRegion CTexPassElement::opaqueRegion() {

if (data.surface && data.surface->current.size == Vector2D{data.w, data.h}) {
CRegion opaqueSurf = data.surface->current.opaque.copy();
return opaqueSurf.translate(data.pos + data.localPos - data.pMonitor->vecPosition);
return opaqueSurf.intersect(CBox{{}, {data.w, data.h}}).translate(data.pos + data.localPos - data.pMonitor->vecPosition);
}

return data.texture && data.texture->m_bOpaque ? boundingBox()->expand(-data.rounding) : CRegion{};
Expand Down

0 comments on commit f589d2a

Please sign in to comment.