aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-21 22:15:42 +0200
committervaxerski <[email protected]>2022-04-21 22:15:42 +0200
commit091048412a35b2f1d4d1be2a065b8802d964bc5c (patch)
treef992afab33e55eebabf5b9be35bc74236839ee96
parent5b8cdc6c43636079c80a959db17328e7e58f6b18 (diff)
downloadHyprland-091048412a35b2f1d4d1be2a065b8802d964bc5c.tar.gz
Hyprland-091048412a35b2f1d4d1be2a065b8802d964bc5c.zip
Added warn for old monitor cfg
-rw-r--r--src/config/ConfigManager.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 64da8039..01e87138 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -187,6 +187,15 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
newrule.scale = stof(curitem);
+ nextItem();
+
+ if (curitem != "") {
+ // warning for old cfg
+ Debug::log(ERR, "Error in parsing rule for %s, possibly old config!", newrule.name.c_str());
+ parseError = "Error in setting monitor rule. Are you using the old syntax? Confront the wiki.";
+ return;
+ }
+
// overwrite if exists
for (auto& r : m_dMonitorRules) {
if (r.name == newrule.name) {
@@ -595,4 +604,4 @@ void CConfigManager::performMonitorReload() {
}
m_bWantsMonitorReload = false;
-} \ No newline at end of file
+}