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") {