Skip to content

Commit a3309b5

Browse files
committed
shadow: fix small pixel gaps between border
huge fix
1 parent cba1ade commit a3309b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/render/decorations/CHyprDropShadowDecoration.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) {
190190
g_pHyprOpenGL->renderRoundedShadow(&fullBox, ROUNDING * pMonitor->scale, *PSHADOWSIZE * pMonitor->scale, CColor(1, 1, 1, PWINDOW->m_cRealShadowColor.value().a), a);
191191

192192
// render black window box ("clip")
193-
g_pHyprOpenGL->renderRect(&windowBox, CColor(0, 0, 0, 1.0), ROUNDING * pMonitor->scale);
193+
g_pHyprOpenGL->renderRect(&windowBox, CColor(0, 0, 0, 1.0), (ROUNDING + 1 /* This fixes small pixel gaps. */) * pMonitor->scale);
194194

195195
alphaSwapFB.bind();
196196

0 commit comments

Comments
 (0)