summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-04-01 09:41:39 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-04-05 00:05:08 +0200
commit7963a389dea1ff1a0c3a1910ae05ecc562597b13 (patch)
tree7289b7e5f4e5a243ff228dcf6e4c2de052dd1071 /vcl
parent0ff90fd5cb698ef78fc15e3073eaaacd599beae7 (diff)
tdf#120865: preserve cursor shape on repositioning the cursor
i.e. don't recreate cursor with new (default) arrow shape in SalFrame::SetPointerPos, but simply move the existing one Change-Id: I3406ceff25a53de6f2afa318114370c318e6a500 Reviewed-on: https://gerrit.libreoffice.org/70049 Tested-by: Jenkins Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> (cherry picked from commit 330df37c7e2af0564bcd2de1f171bed4befcc074) Reviewed-on: https://gerrit.libreoffice.org/70238 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Frame.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index 3172b769f550..b1ad0f93d561 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -682,9 +682,9 @@ void Qt5Frame::CaptureMouse(bool bMouse)
void Qt5Frame::SetPointerPos(long nX, long nY)
{
- QCursor aCursor = m_pQWidget->cursor();
+ // some cursor already exists (and it has m_ePointerStyle shape)
+ // so here we just reposition it
QCursor::setPos(m_pQWidget->mapToGlobal(QPoint(nX, nY)));
- m_pQWidget->setCursor(aCursor);
}
void Qt5Frame::Flush()