diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index e47f5119..fc45663e 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -159,7 +159,7 @@ void CHyprOpenGLImpl::end() { if (m_RenderData.mouseZoomFactor != 1.f) { const auto ZOOMCENTER = - m_RenderData.mouseZoomUseMouse ? g_pInputManager->getMouseCoordsInternal() - m_RenderData.pMonitor->vecPosition : m_RenderData.pMonitor->vecTransformedSize / 2.f; + (m_RenderData.mouseZoomUseMouse ? g_pInputManager->getMouseCoordsInternal() - m_RenderData.pMonitor->vecPosition : m_RenderData.pMonitor->vecTransformedSize / 2.f) * m_RenderData.pMonitor->scale; monbox.x -= ZOOMCENTER.x; monbox.y -= ZOOMCENTER.y; scaleBox(&monbox, m_RenderData.mouseZoomFactor);