From 352ceb1117b79cd0bc3fa86ebe435b6909512ddb Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 24 Sep 2023 13:35:36 +0100 Subject: [PATCH] config: trim spaces in the rule field in windowrulev2 --- src/config/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 1e7d8177..ceff4414 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -970,7 +970,7 @@ void CConfigManager::handleLayerRule(const std::string& command, const std::stri } void CConfigManager::handleWindowRuleV2(const std::string& command, const std::string& value) { - const auto RULE = value.substr(0, value.find_first_of(',')); + const auto RULE = removeBeginEndSpacesTabs(value.substr(0, value.find_first_of(','))); const auto VALUE = value.substr(value.find_first_of(',') + 1); if (!windowRuleValid(RULE) && RULE != "unset") {