diff options
| author | aphelei <arnaudpecoraro1@gmail.com> | 2025-07-01 11:33:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 11:33:48 +0200 |
| commit | e9c5594186d7ba935e966751d4d676cda998c34b (patch) | |
| tree | 2a5ee8d3a6bbbdd11323652910cb74455bd8d887 /src/config/ConfigManager.cpp | |
| parent | e827b75e22daeb8e152c6766105b10cb689e10e2 (diff) | |
renderer: add mouse zoom animations (#10882)
Adds animations for the mouse zoom effect.
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 918bd901..f98efee3 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -972,6 +972,7 @@ void CConfigManager::setDefaultAnimationVars() { m_animationTree.createNode("border", "global"); m_animationTree.createNode("borderangle", "global"); m_animationTree.createNode("workspaces", "global"); + m_animationTree.createNode("zoomFactor", "global"); // layer m_animationTree.createNode("layersIn", "layers"); @@ -1129,8 +1130,11 @@ void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { w->uncacheWindowDecos(); } - for (auto const& m : g_pCompositor->m_monitors) + static auto PZOOMFACTOR = CConfigValue<Hyprlang::FLOAT>("cursor:zoom_factor"); + for (auto const& m : g_pCompositor->m_monitors) { + *(m->m_cursorZoom) = *PZOOMFACTOR; g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->m_id); + } // Update the keyboard layout to the cfg'd one if this is not the first launch if (!m_isFirstLaunch) { |
