tablet: Provide the position when proximity-in hits

This commit is contained in:
Aleix Pol 2021-11-29 17:12:58 +01:00
parent 4a69ca4146
commit 4dca6408c2

View file

@ -1902,7 +1902,10 @@ public:
m_cursorByTool[tool]->setPos(event->globalPos()); m_cursorByTool[tool]->setPos(event->globalPos());
break; break;
} case QEvent::TabletEnterProximity: { } case QEvent::TabletEnterProximity: {
const QPoint pos = event->globalPos();
m_cursorByTool[tool]->setPos(pos);
tool->sendProximityIn(tablet); tool->sendProximityIn(tablet);
tool->sendMotion(toplevel->mapToLocal(event->globalPosF()));
break; break;
} case QEvent::TabletLeaveProximity: } case QEvent::TabletLeaveProximity:
tool->sendProximityOut(); tool->sendProximityOut();