Merge branch 'Plasma/5.11'
This commit is contained in:
commit
d59f5997fd
4 changed files with 4 additions and 5 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue