From 4b568ae5f67594819f7858d9f2def1007368ddda Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Sun, 13 Aug 2023 08:18:48 +0000 Subject: [PATCH] remove shadow no_gaps_when_only master (#2958) * remove shadow no_gaps_when_only modified: src/Window.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/layout/DwindleLayout.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp * add master modified: src/layout/MasterLayout.cpp * fix wrong modified: src/layout/MasterLayout.cpp --- src/layout/MasterLayout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index ebe7f4b7..ebaf7cbd 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -535,6 +535,7 @@ void CHyprMasterLayout::applyNodeDataToWindow(SMasterNodeData* pNode) { (PWINDOW->m_bIsFullscreen && g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID)->m_efFullscreenMode == FULLSCREEN_MAXIMIZED))) { PWINDOW->m_sSpecialRenderData.rounding = false; + PWINDOW->m_sSpecialRenderData.shadow = false; PWINDOW->m_sSpecialRenderData.decorate = WORKSPACERULE.decorate.value_or(true); PWINDOW->m_sSpecialRenderData.border = WORKSPACERULE.border.value_or(*PNOGAPSWHENONLY == 2); @@ -552,6 +553,7 @@ void CHyprMasterLayout::applyNodeDataToWindow(SMasterNodeData* pNode) { PWINDOW->m_sSpecialRenderData.rounding = WORKSPACERULE.rounding.value_or(true); PWINDOW->m_sSpecialRenderData.decorate = WORKSPACERULE.decorate.value_or(true); + PWINDOW->m_sSpecialRenderData.shadow = WORKSPACERULE.shadow.value_or(true); PWINDOW->m_sSpecialRenderData.border = WORKSPACERULE.border.value_or(true); PWINDOW->m_sSpecialRenderData.borderSize = WORKSPACERULE.borderSize.value_or(-1);