vcl/qt5/Qt5Frame.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 4fe30879af391c32074a003a7a6ddd45431d212a Author: Jan-Marek Glogowski <jan-marek.glogow...@extern.cib.de> AuthorDate: Fri Feb 21 00:37:04 2020 +0100 Commit: Jan-Marek Glogowski <glo...@fbihome.de> CommitDate: Sat Feb 22 09:01:33 2020 +0100
tdf#130827 Qt5 report frame-relative cursor pos Qt5Frame::GetPointerState expects the cursor position relative to the frame position. Change-Id: Icaf7dcd8fc80d712f5138a9f9b843ccf345c5543 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89244 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glo...@fbihome.de> diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index 4a6075999096..2f6738485fb0 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -1143,6 +1143,7 @@ SalFrame::SalPointerState Qt5Frame::GetPointerState() { SalPointerState aState; aState.maPos = toPoint(QCursor::pos()); + aState.maPos.Move(-maGeometry.nX, -maGeometry.nY); aState.mnState = GetMouseModCode(QGuiApplication::mouseButtons()) | GetKeyModCode(QGuiApplication::keyboardModifiers()); return aState; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits