summaryrefslogtreecommitdiff
path: root/src/desktop/LayerRule.cpp
diff options
context:
space:
mode:
author0xFMD <30713087+0xFMD@users.noreply.github.com>2025-09-22 14:26:14 +0300
committerGitHub <noreply@github.com>2025-09-22 12:26:14 +0100
commit26f293523ad6b7c8120b2e21a1dd6d0e5b512863 (patch)
tree8ba89fd1510ed5a7b1b338f76047e571e36366cf /src/desktop/LayerRule.cpp
parent45f007d41228aa18bbd81bc5a6eb3148afdcc800 (diff)
renderer: add "noscreenshare" layer rule (#11664)
Diffstat (limited to 'src/desktop/LayerRule.cpp')
-rw-r--r--src/desktop/LayerRule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop/LayerRule.cpp b/src/desktop/LayerRule.cpp
index dfcd289a..d6bfcadf 100644
--- a/src/desktop/LayerRule.cpp
+++ b/src/desktop/LayerRule.cpp
@@ -4,7 +4,7 @@
#include <algorithm>
#include "../debug/Log.hpp"
-static const auto RULES = std::unordered_set<std::string>{"noanim", "blur", "blurpopups", "dimaround"};
+static const auto RULES = std::unordered_set<std::string>{"noanim", "blur", "blurpopups", "dimaround", "noscreenshare"};
static const auto RULES_PREFIX = std::unordered_set<std::string>{"ignorealpha", "ignorezero", "xray", "animation", "order", "abovelock"};
CLayerRule::CLayerRule(const std::string& rule_, const std::string& ns_) : m_targetNamespace(ns_), m_rule(rule_) {
@@ -21,6 +21,8 @@ CLayerRule::CLayerRule(const std::string& rule_, const std::string& ns_) : m_tar
m_ruleType = RULE_BLURPOPUPS;
else if (m_rule == "dimaround")
m_ruleType = RULE_DIMAROUND;
+ else if (m_rule == "noscreenshare")
+ m_ruleType = RULE_NOSCREENSHARE;
else if (m_rule.starts_with("ignorealpha"))
m_ruleType = RULE_IGNOREALPHA;
else if (m_rule.starts_with("ignorezero"))