shadow: avoid drawing empty shadows

This commit is contained in:
Vaxry
2025-01-26 15:15:54 +00:00
parent e951011503
commit efe29a2461

View File

@@ -231,6 +231,9 @@ eDecorationLayer CHyprDropShadowDecoration::getDecorationLayer() {
void CHyprDropShadowDecoration::drawShadowInternal(const CBox& box, int round, float roundingPower, int range, CHyprColor color, float a) {
static auto PSHADOWSHARP = CConfigValue<Hyprlang::INT>("decoration:shadow:sharp");
if (box.w < 1 || box.h < 1)
return;
g_pHyprOpenGL->blend(true);
color.a *= a;