Cursor: properly initialize hotspot position Fixes: #1510407
Approved by: Gerry Boland
commit97e722cd87a58ba6805f2d75ad4693443cc6f09e
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateThu 12 Nov 2015, 20:39 (11 years ago)
parent941e4b77d494e3
plugins/Cursor/MousePointer.cpp+1
@@ -32,6 +32,7 @@ MousePointer::MousePointer(QQuickItem *parent)
3232 , m_hotspotX(0)
3333 , m_hotspotY(0)
3434{
35+ updateHotspot();
3536}
3637
3738void MousePointer::handleMouseEvent(ulong timestamp, QPointF movement, Qt::MouseButtons buttons,