From 944e36ea2e71db20cf3f8b2e5cbf978a5bf5268b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 24 Jan 2025 13:23:23 +0000 Subject: [PATCH] config: fix misc:disable_autoreload fixes #9139 --- src/config/ConfigManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index b0665db9..f5c9b3ee 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -897,9 +897,10 @@ std::optional CConfigManager::resetHLConfig() { void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { static const auto PENABLEEXPLICIT = CConfigValue("render:explicit_sync"); + static const auto PDISABLEAUTORELOAD = CConfigValue("misc:disable_autoreload"); static int prevEnabledExplicit = *PENABLEEXPLICIT; - g_pConfigWatcher->setWatchList(m_configPaths); + g_pConfigWatcher->setWatchList(*PDISABLEAUTORELOAD ? std::vector{} : m_configPaths); for (auto const& w : g_pCompositor->m_vWindows) { w->uncacheWindowDecos();