From f0fe0c25d6474a852e1d7f1af62b7854ac461af6 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 14 Aug 2022 23:26:18 +0200 Subject: added config-only to hyprctl reload --- src/config/ConfigManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 9f38f16b..a640a4d5 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1079,7 +1079,8 @@ void CConfigManager::loadConfigLoadVars() { // Set the modes for all monitors as we configured them // not on first launch because monitors might not exist yet // and they'll be taken care of in the newMonitor event - if (!isFirstLaunch) { + // ignore if nomonitorreload is set + if (!isFirstLaunch && !m_bNoMonitorReload) { m_bWantsMonitorReload = true; // check @@ -1099,6 +1100,9 @@ void CConfigManager::loadConfigLoadVars() { // Force the compositor to fully re-render all monitors for (auto& m : g_pCompositor->m_vMonitors) m->forceFullFrames = 2; + + // Reset no monitor reload + m_bNoMonitorReload = false; } void CConfigManager::tick() { -- cgit v1.2.3