summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-24 13:35:36 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-24 13:35:36 +0100
commit352ceb1117b79cd0bc3fa86ebe435b6909512ddb (patch)
tree80314df5feef832e277b1ebadfed41c430e73ff8 /src
parent2c4a06eb547e11e818bbc94d90ecb1b32de21c21 (diff)
config: trim spaces in the rule field in windowrulev2
Diffstat (limited to 'src')
-rw-r--r--src/config/ConfigManager.cpp2
1 files changed, 1 insertions, 1 deletions
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") {