diff --git a/plugins/platforms/drm/drm_backend.cpp b/plugins/platforms/drm/drm_backend.cpp index 30141ab6ef..33f894d414 100644 --- a/plugins/platforms/drm/drm_backend.cpp +++ b/plugins/platforms/drm/drm_backend.cpp @@ -678,12 +678,11 @@ void DrmBackend::doHideCursor() void DrmBackend::moveCursor() { - const QPoint p = Cursor::pos() - softwareCursorHotspot(); if (!m_cursorEnabled || isCursorHidden()) { return; } for (auto it = m_outputs.constBegin(); it != m_outputs.constEnd(); ++it) { - (*it)->moveCursor(p); + (*it)->moveCursor(Cursor::pos()); } } diff --git a/plugins/platforms/drm/drm_output.cpp b/plugins/platforms/drm/drm_output.cpp index e32c0b387f..bdd4506164 100644 --- a/plugins/platforms/drm/drm_output.cpp +++ b/plugins/platforms/drm/drm_output.cpp @@ -104,7 +104,7 @@ void DrmOutput::showCursor(DrmDumbBuffer *c) void DrmOutput::moveCursor(const QPoint &globalPos) { - const QPoint p = (globalPos - m_globalPos) * m_scale; + const QPoint p = (globalPos * m_scale) - m_backend->softwareCursorHotspot(); drmModeMoveCursor(m_backend->fd(), m_crtc->id(), p.x(), p.y()); } diff --git a/plugins/scenes/qpainter/qpainter.json b/plugins/scenes/qpainter/qpainter.json index 3ef9e6a5ca..06d3194407 100644 --- a/plugins/scenes/qpainter/qpainter.json +++ b/plugins/scenes/qpainter/qpainter.json @@ -19,7 +19,7 @@ "Description[sv]": "Kwin sammansättningsinsticksprogram återger via QPainter", "Description[uk]": "Додаток засобу композиції KWin для обробки з використанням QPainter", "Description[x-test]": "xxKWin Compositor plugin rendering through QPainterxx", - "Description[zh_CN]": "使用 QPainter 渲染的 KWin 合成插件", + "Description[zh_CN]": "使用 QPainter 渲染的 KWin 混成插件", "Id": "KWinSceneQPainter", "Name": "SceneQPainter", "Name[pl]": "QPainter sceny", diff --git a/plugins/scenes/xrender/xrender.json b/plugins/scenes/xrender/xrender.json index 44a08c188a..8deab38fc9 100644 --- a/plugins/scenes/xrender/xrender.json +++ b/plugins/scenes/xrender/xrender.json @@ -19,7 +19,7 @@ "Description[sv]": "Kwin sammansättningsinsticksprogram återger via XRender", "Description[uk]": "Додаток засобу композиції KWin для обробки з використанням XRender", "Description[x-test]": "xxKWin Compositor plugin rendering through XRenderxx", - "Description[zh_CN]": "使用 XRender 渲染的 KWin 合成插件", + "Description[zh_CN]": "使用 XRender 渲染的 KWin 混成插件", "Id": "KWinSceneXRender", "Name": "SceneXRender", "Name[pl]": "XRender sceny",