diff options
Diffstat (limited to 'src/config/lua/ConfigManager.cpp')
| -rw-r--r-- | src/config/lua/ConfigManager.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/config/lua/ConfigManager.cpp b/src/config/lua/ConfigManager.cpp index b4fc791d..685f925f 100644 --- a/src/config/lua/ConfigManager.cpp +++ b/src/config/lua/ConfigManager.cpp @@ -476,8 +476,6 @@ void CConfigManager::reload() { } void CConfigManager::postConfigReload() { - - static auto PZOOMFACTOR = CConfigValue<Config::FLOAT>("cursor.zoom_factor"); static auto PSUPPRESSERRORS = CConfigValue<Config::INTEGER>("debug.suppress_errors"); static auto PXWAYLAND = CConfigValue<Config::INTEGER>("xwayland.enabled"); static auto PMANUALCRASH = CConfigValue<Config::INTEGER>("debug.manual_crash"); @@ -490,12 +488,6 @@ void CConfigManager::postConfigReload() { w->uncacheWindowDecos(); } - for (auto const& m : g_pCompositor->m_monitors) { - *(m->m_cursorZoom) = *PZOOMFACTOR; - if (m->m_activeWorkspace) - m->m_activeWorkspace->m_space->recalculate(); - } - // Update the keyboard layout to the cfg'd one if this is not the first launch if (!m_isFirstLaunch) { g_pInputManager->setKeyboardLayout(); @@ -611,6 +603,8 @@ void CConfigManager::postConfigReload() { Layout::Supplementary::algoMatcher()->updateWorkspaceLayouts(); + Config::Supplementary::refresher()->scheduleRefresh(Supplementary::REFRESH_ALL); + Event::bus()->m_events.config.reloaded.emit(); if (g_pEventManager) g_pEventManager->postEvent(SHyprIPCEvent{"configreloaded", ""}); |
