From e9c5594186d7ba935e966751d4d676cda998c34b Mon Sep 17 00:00:00 2001 From: aphelei Date: Tue, 1 Jul 2025 11:33:48 +0200 Subject: renderer: add mouse zoom animations (#10882) Adds animations for the mouse zoom effect. --- src/debug/HyprCtl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/debug/HyprCtl.cpp') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index d956f0bd..eb908e1d 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1142,7 +1142,9 @@ static std::string dispatchKeyword(eHyprCtlOutputFormat format, std::string in) // decorations will probably need a repaint if (COMMAND.contains("decoration:") || COMMAND.contains("border") || COMMAND == "workspace" || COMMAND.contains("zoom_factor") || COMMAND == "source" || COMMAND.starts_with("windowrule")) { + static auto PZOOMFACTOR = CConfigValue("cursor:zoom_factor"); for (auto const& m : g_pCompositor->m_monitors) { + *(m->m_cursorZoom) = *PZOOMFACTOR; g_pHyprRenderer->damageMonitor(m); g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->m_id); } -- cgit v1.2.3