From 6dc42e0f6d777109b6c8203dccf5c5d421b1fa04 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 May 2026 12:41:06 +0100 Subject: config/refresher: fix refreshing of cursor zooms (#14283) --- src/config/legacy/ConfigManager.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/config/legacy/ConfigManager.cpp') 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("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", ""}); -- cgit v1.2.3