mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
configmanager: fix substr offset in default ws rule
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user