mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:45:58 +01:00
config: trim spaces in the rule field in windowrulev2
This commit is contained in:
parent
2c4a06eb54
commit
352ceb1117
1 changed files with 1 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue