summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorFrançois Conzelmann <45296195+zephvr@users.noreply.github.com>2023-11-30 02:48:10 +0100
committerGitHub <noreply@github.com>2023-11-30 01:48:10 +0000
commit1fc1e4e9cbc2569eb4d3841f22020f35e9642f12 (patch)
treee8234f8e0cc5608e7729e699fc947d1d3b864922 /src/config/ConfigManager.cpp
parente1258707adeb3061600c43a5445063c5e3c59037 (diff)
monitor: remove comma from monitor description (#3996)
this allows for monitor specific rules to work on monitor with comma on their description fixes #2457
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 07c1f51f..257446ee 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -2082,7 +2082,7 @@ void CConfigManager::performMonitorReload() {
if (!m->output || m->isUnsafeFallback)
continue;
- auto rule = getMonitorRuleFor(m->szName, m->output->description ? m->output->description : "");
+ auto rule = getMonitorRuleFor(m->szName, m->szDescription);
if (!g_pHyprRenderer->applyMonitorRule(m.get(), &rule)) {
overAgain = true;
@@ -2163,7 +2163,7 @@ void CConfigManager::ensureMonitorStatus() {
if (!rm->output || rm->isUnsafeFallback)
continue;
- auto rule = getMonitorRuleFor(rm->szName, rm->output->description ? rm->output->description : "");
+ auto rule = getMonitorRuleFor(rm->szName, rm->szDescription);
if (rule.disabled == rm->m_bEnabled)
g_pHyprRenderer->applyMonitorRule(rm.get(), &rule);