explicitely ungrab on reset

This commit is contained in:
Uwe Rathmann 2018-06-19 10:46:51 +02:00
parent f10c6437d6
commit c6317a9f2b
1 changed files with 7 additions and 0 deletions

View File

@ -486,6 +486,13 @@ void QskGestureRecognizer::reset()
qskTimerTable->stopTimer( this ); qskTimerTable->stopTimer( this );
m_data->watchedItem->setKeepMouseGrab( false ); m_data->watchedItem->setKeepMouseGrab( false );
if ( auto window = m_data->watchedItem->window() )
{
if ( window->mouseGrabberItem() == m_data->watchedItem )
m_data->watchedItem->ungrabMouse();
}
m_data->pendingEvents.reset(); m_data->pendingEvents.reset();
m_data->timestamp = 0; m_data->timestamp = 0;