Add monitor disabled option

This commit is contained in:
vaxerski
2022-04-17 10:19:46 +02:00
parent 2118628d58
commit 4a966c945b
3 changed files with 19 additions and 3 deletions

View File

@@ -142,6 +142,14 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
nextItem();
if (curitem == "disable") {
newrule.disabled = true;
m_dMonitorRules.push_back(newrule);
return;
}
newrule.resolution.x = stoi(curitem.substr(0, curitem.find_first_of('x')));
newrule.resolution.y = stoi(curitem.substr(curitem.find_first_of('x') + 1, curitem.find_first_of('@')));