From 897cf0ae26c7c54ce15c4946efe63970be75dadb Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 21 Feb 2024 16:28:39 +0000 Subject: [PATCH] config: add explicit ctors for config variables fixes #139 --- src/config/ConfigManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 5adc799..21c66bb 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -132,9 +132,9 @@ CConfigManager::CConfigManager() { config = std::make_unique(configPath.c_str(), Hyprlang::SConfigOptions{.allowMissingConfig = true}); - config->addConfigValue("ipc", {1L}); - config->addConfigValue("splash", {0L}); - config->addConfigValue("splash_offset", {2.F}); + config->addConfigValue("ipc", Hyprlang::INT{1L}); + config->addConfigValue("splash", Hyprlang::INT{0L}); + config->addConfigValue("splash_offset", Hyprlang::FLOAT{2.F}); config->registerHandler(&handleWallpaper, "wallpaper", {.allowFlags = false}); config->registerHandler(&handleUnload, "unload", {.allowFlags = false});