summaryrefslogtreecommitdiff
path: root/src/render/decorations/CHyprDropShadowDecoration.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-09-23 16:47:58 +0100
committervaxerski <vaxry@vaxry.net>2022-09-23 16:47:58 +0100
commit695411f1bdad4535156602ba9b389b02713bc1b6 (patch)
treeb25969eb3048554815c8c4a12bf8078fa70b6f14 /src/render/decorations/CHyprDropShadowDecoration.cpp
parente5d143b2386c3773f6fb5176752a1b381d3ee7a5 (diff)
don't decorate on only no gaps
Diffstat (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp')
-rw-r--r--src/render/decorations/CHyprDropShadowDecoration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp
index 14d97e99..8c9b23a3 100644
--- a/src/render/decorations/CHyprDropShadowDecoration.cpp
+++ b/src/render/decorations/CHyprDropShadowDecoration.cpp
@@ -56,6 +56,9 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) {
if (m_pWindow->m_cRealShadowColor.col() == CColor(0, 0, 0, 0))
return; // don't draw invisible shadows
+ if (!m_pWindow->m_sSpecialRenderData.decorate)
+ return;
+
static auto *const PSHADOWS = &g_pConfigManager->getConfigValuePtr("decoration:drop_shadow")->intValue;
static auto *const PSHADOWSIZE = &g_pConfigManager->getConfigValuePtr("decoration:shadow_range")->intValue;
static auto *const PROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue;