From cbb899740cd80dfd29afeb5426c60e6b41a23669 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 9 Aug 2023 22:03:24 +0200 Subject: rules: add layer and window xray rules --- src/config/ConfigManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 461956a2..0723ad24 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -889,11 +889,11 @@ bool windowRuleValid(const std::string& RULE) { RULE != "nofullscreenrequest" && RULE != "nomaximizerequest" && RULE != "fakefullscreen" && RULE != "nomaxsize" && RULE != "pin" && RULE != "noanim" && RULE != "dimaround" && RULE != "windowdance" && RULE != "maximize" && RULE != "keepaspectratio" && RULE.find("animation") != 0 && RULE.find("rounding") != 0 && RULE.find("workspace") != 0 && RULE.find("bordercolor") != 0 && RULE != "forcergbx" && RULE != "noinitialfocus" && RULE != "stayfocused" && - RULE.find("bordersize") != 0); + RULE.find("bordersize") != 0 && RULE.find("xray") != 0); } bool layerRuleValid(const std::string& RULE) { - return !(RULE != "noanim" && RULE != "blur" && RULE.find("ignorealpha") != 0 && RULE.find("ignorezero") != 0); + return !(RULE != "noanim" && RULE != "blur" && RULE.find("ignorealpha") != 0 && RULE.find("ignorezero") != 0 && RULE.find("xray") != 0); } void CConfigManager::handleWindowRule(const std::string& command, const std::string& value) { -- cgit v1.2.3