summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-11-19 10:43:37 +0100
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-11-19 10:43:37 +0100
commit7b98280f9fc038657a111770d15564c4703d786a (patch)
tree959e44270e61f189fff5ea07732acf777bc0c1a2
parent3b0b6e8e481a899a417408f16e32e2521cfd52fb (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.cpp7
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().