mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:29:48 +01:00
configmanager: fix substr offset in default ws rule
This commit is contained in:
parent
a8541d5f64
commit
583b8842e7
1 changed files with 1 additions and 1 deletions
|
@ -1055,7 +1055,7 @@ void CConfigManager::handleWorkspaceRules(const std::string& command, const std:
|
||||||
else if ((delim = rule.find("monitor:")) != std::string::npos)
|
else if ((delim = rule.find("monitor:")) != std::string::npos)
|
||||||
wsRule.monitor = rule.substr(delim + 8);
|
wsRule.monitor = rule.substr(delim + 8);
|
||||||
else if ((delim = rule.find("default:")) != std::string::npos)
|
else if ((delim = rule.find("default:")) != std::string::npos)
|
||||||
wsRule.isDefault = configStringToInt(rule.substr(delim + 9));
|
wsRule.isDefault = configStringToInt(rule.substr(delim + 8));
|
||||||
};
|
};
|
||||||
|
|
||||||
size_t pos = 0;
|
size_t pos = 0;
|
||||||
|
|
Loading…
Reference in a new issue