diff options
| author | 0xFMD <30713087+0xFMD@users.noreply.github.com> | 2025-09-22 14:26:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 12:26:14 +0100 |
| commit | 26f293523ad6b7c8120b2e21a1dd6d0e5b512863 (patch) | |
| tree | 8ba89fd1510ed5a7b1b338f76047e571e36366cf /src/desktop/LayerSurface.cpp | |
| parent | 45f007d41228aa18bbd81bc5a6eb3148afdcc800 (diff) | |
renderer: add "noscreenshare" layer rule (#11664)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); |
