From 7b98280f9fc038657a111770d15564c4703d786a Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 19 Nov 2010 10:43:37 +0100 Subject: The vsync animation driver needs to intercept and reject all update requests. It drives all painting by itself... --- src/canvas/qvsyncanimationdriver.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(). -- cgit v1.2.3