diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-11-19 10:43:37 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-11-19 10:43:37 +0100 |
commit | 7b98280f9fc038657a111770d15564c4703d786a (patch) | |
tree | 959e44270e61f189fff5ea07732acf777bc0c1a2 | |
parent | 3b0b6e8e481a899a417408f16e32e2521cfd52fb (diff) |
The vsync animation driver needs to intercept and reject all update requests.
It drives all painting by itself...
-rw-r--r-- | src/canvas/qvsyncanimationdriver.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/canvas/qvsyncanimationdriver.cpp b/src/canvas/qvsyncanimationdriver.cpp index 8e37736..ac16938 100644 --- a/src/canvas/qvsyncanimationdriver.cpp +++ b/src/canvas/qvsyncanimationdriver.cpp @@ -88,6 +88,13 @@ bool QVSyncAnimationDriver::eventFilter(QObject *object, QEvent *event) { Q_D(QVSyncAnimationDriver); if (isRunning()) { + +#ifdef Q_WS_QPA + if (object == d->window && event->type() == QEvent::UpdateRequest) + return true; + else +#endif + if (object == QApplication::instance() && event->type() == QEvent::Quit) { // If we get a close event while running, we are actually inside the processEvents() // block and need to exit an extra level to exit the final exec(). |