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/legacy/ConfigManager.cpp | |
| parent | a531c2ed6bb4cd4eb2c6cb51838cb07a37226377 (diff) | |
config/refresher: fix refreshing of cursor zooms (#14283)
Diffstat (limited to 'src/config/legacy/ConfigManager.cpp')
| -rw-r--r-- | src/config/legacy/ConfigManager.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/config/legacy/ConfigManager.cpp b/src/config/legacy/ConfigManager.cpp index e4c485e0..3b397b42 100644 --- a/src/config/legacy/ConfigManager.cpp +++ b/src/config/legacy/ConfigManager.cpp @@ -965,13 +965,6 @@ void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { w->uncacheWindowDecos(); } - static auto PZOOMFACTOR = CConfigValue<Hyprlang::FLOAT>("cursor:zoom_factor"); - 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(); @@ -1074,6 +1067,8 @@ void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { // update layouts 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", ""}); |
