Commit 3d1dfc9f authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Prevent mouse from getting stuck in paint mode after using a tablet.

parent cfb3eb00
......@@ -76,6 +76,7 @@ void KisToolInvocationAction::end()
if(d->useTablet) {
QTabletEvent *releaseEvent = new QTabletEvent(QEvent::TabletRelease, inputManager()->mousePosition().toPoint(), inputManager()->mousePosition().toPoint(), inputManager()->mousePosition(), d->tabletDevice, d->pointerType, 0.f, 0, 0, 0.f, 0.f, d->tabletZ, 0, d->tabletID);
inputManager()->toolProxy()->tabletEvent(releaseEvent, inputManager()->mousePosition());
d->useTablet = false;
} else {
QMouseEvent *releaseEvent = new QMouseEvent(QEvent::MouseButtonRelease, inputManager()->mousePosition().toPoint(), Qt::LeftButton, Qt::LeftButton, 0);
inputManager()->toolProxy()->mouseReleaseEvent(releaseEvent, inputManager()->mousePosition());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment