From 26f293523ad6b7c8120b2e21a1dd6d0e5b512863 Mon Sep 17 00:00:00 2001 From: 0xFMD <30713087+0xFMD@users.noreply.github.com> Date: Mon, 22 Sep 2025 14:26:14 +0300 Subject: renderer: add "noscreenshare" layer rule (#11664) --- src/desktop/LayerSurface.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/desktop/LayerSurface.cpp') diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index a89f9dba..5d2ab9a8 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -388,8 +388,9 @@ void CLayerSurface::applyRules() { m_noAnimations = false; m_forceBlur = false; m_ignoreAlpha = false; - m_ignoreAlphaValue = 0.f; m_dimAround = false; + m_noScreenShare = false; + m_ignoreAlphaValue = 0.f; m_xray = -1; m_animationStyle.reset(); @@ -425,6 +426,10 @@ void CLayerSurface::applyRules() { m_dimAround = true; break; } + case CLayerRule::RULE_NOSCREENSHARE: { + m_noScreenShare = true; + break; + } case CLayerRule::RULE_XRAY: { CVarList vars{rule->m_rule, 0, ' '}; m_xray = configStringToInt(vars[1]).value_or(false); -- cgit v1.2.3