diff options
Diffstat (limited to 'src/desktop/LayerRule.cpp')
| -rw-r--r-- | src/desktop/LayerRule.cpp | 4 |
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")) |
