From 0a5bd7397bfce7c880bd8d783349d3985091e6e5 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 28 Nov 2023 21:23:36 +0200 Subject: [PATCH] plugins/shakecursor: Make it easier to build up magnification --- src/plugins/shakecursor/shakecursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/shakecursor/shakecursor.cpp b/src/plugins/shakecursor/shakecursor.cpp index 495597d1c7..0e16fc03d9 100644 --- a/src/plugins/shakecursor/shakecursor.cpp +++ b/src/plugins/shakecursor/shakecursor.cpp @@ -70,7 +70,7 @@ void ShakeCursorEffect::pointerEvent(MouseEvent *event) .position = m_cursor->pos(), .hotspot = m_cursor->hotspot(), .size = m_cursor->geometry().size(), - .magnification = 1.0 + ShakeCursorConfig::magnification() * shakeFactor.value(), + .magnification = std::max(m_cursorMagnification, 1.0 + ShakeCursorConfig::magnification() * shakeFactor.value()), }); m_resetCursorScaleTimer.start(1000); } else {