OpenToonz - An open-source full-featured 2D animation creation software
C
Fix crash after starting a pen stroke from inactive window
justburnerf37aa679b85b
diff --git a/toonz/sources/toonz/tapp.cpp b/toonz/sources/toonz/tapp.cppindex 421b2e6f1..512b12c22 100644--- a/toonz/sources/toonz/tapp.cpp+++ b/toonz/sources/toonz/tapp.cpp@@ -748,7 +748,7 @@ bool TApp::eventFilter(QObject *watched, QEvent *e) {// if the user is painting very quickly with the pen, a number of events// could be still in the queue// the must be processed as tabled events (not mouse events)- qApp->processEvents();+ if (m_isPenCloseToTablet) qApp->processEvents();m_isPenCloseToTablet = false;emit tabletLeft();