mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
shadow: avoid drawing empty shadows
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user