summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2025-06-26 13:28:21 +0300
committerGitHub <noreply@github.com>2025-06-26 12:28:21 +0200
commit452a158107c7244f5f9a8c38444d9e10d05d95ef (patch)
treeeacebfcce1654e64d7c3e45a2fb206cd43e6c060 /src/config/ConfigManager.cpp
parentf4f090e4b2f9f0bba5408cbd135d2fff1990be1d (diff)
config: use parseScale for monitorv2 (#10852)
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 5ebb7a26..db6972d9 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -801,7 +801,7 @@ CConfigManager::CConfigManager() {
m_config->addSpecialConfigValue("monitorv2", "disabled", Hyprlang::INT{0});
m_config->addSpecialConfigValue("monitorv2", "mode", {"preferred"});
m_config->addSpecialConfigValue("monitorv2", "position", {"auto"});
- m_config->addSpecialConfigValue("monitorv2", "scale", Hyprlang::FLOAT{1.0});
+ m_config->addSpecialConfigValue("monitorv2", "scale", {"auto"});
m_config->addSpecialConfigValue("monitorv2", "addreserved", {STRVAL_EMPTY});
m_config->addSpecialConfigValue("monitorv2", "mirror", {STRVAL_EMPTY});
m_config->addSpecialConfigValue("monitorv2", "bitdepth", {STRVAL_EMPTY}); // TODO use correct type
@@ -1050,7 +1050,7 @@ std::optional<std::string> CConfigManager::handleMonitorv2(const std::string& ou
parser.parsePosition(std::any_cast<Hyprlang::STRING>(VAL->getValue()));
VAL = m_config->getSpecialConfigValuePtr("monitorv2", "scale", output.c_str());
if (VAL && VAL->m_bSetByUser)
- parser.rule().scale = std::any_cast<Hyprlang::FLOAT>(VAL->getValue());
+ parser.parseScale(std::any_cast<Hyprlang::STRING>(VAL->getValue()));
VAL = m_config->getSpecialConfigValuePtr("monitorv2", "addreserved", output.c_str());
if (VAL && VAL->m_bSetByUser) {
const auto ARGS = CVarList(std::any_cast<Hyprlang::STRING>(VAL->getValue()));