From 695411f1bdad4535156602ba9b389b02713bc1b6 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 23 Sep 2022 16:47:58 +0100 Subject: don't decorate on only no gaps --- src/render/decorations/CHyprDropShadowDecoration.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp') 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; -- cgit v1.2.3