summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authoraphelei <arnaudpecoraro1@gmail.com>2025-07-01 11:33:48 +0200
committerGitHub <noreply@github.com>2025-07-01 11:33:48 +0200
commite9c5594186d7ba935e966751d4d676cda998c34b (patch)
tree2a5ee8d3a6bbbdd11323652910cb74455bd8d887 /src/debug/HyprCtl.cpp
parente827b75e22daeb8e152c6766105b10cb689e10e2 (diff)
renderer: add mouse zoom animations (#10882)
Adds animations for the mouse zoom effect.
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp2
1 files changed, 2 insertions, 0 deletions
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<Hyprlang::FLOAT>("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);
}