tablet: Provide the position when proximity-in hits
This commit is contained in:
parent
4a69ca4146
commit
4dca6408c2
1 changed files with 3 additions and 0 deletions
|
@ -1902,7 +1902,10 @@ public:
|
|||
m_cursorByTool[tool]->setPos(event->globalPos());
|
||||
break;
|
||||
} case QEvent::TabletEnterProximity: {
|
||||
const QPoint pos = event->globalPos();
|
||||
m_cursorByTool[tool]->setPos(pos);
|
||||
tool->sendProximityIn(tablet);
|
||||
tool->sendMotion(toplevel->mapToLocal(event->globalPosF()));
|
||||
break;
|
||||
} case QEvent::TabletLeaveProximity:
|
||||
tool->sendProximityOut();
|
||||
|
|
Loading…
Reference in a new issue