diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-05-06 12:41:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 12:41:06 +0100 |
| commit | 6dc42e0f6d777109b6c8203dccf5c5d421b1fa04 (patch) | |
| tree | e7b3d75a0475c805c9f535590ba91add77a152af /src/config/lua/ConfigManager.cpp | |
| parent | a531c2ed6bb4cd4eb2c6cb51838cb07a37226377 (diff) | |
config/refresher: fix refreshing of cursor zooms (#14283)
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", ""}); |
