summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2010-01-28 06:05:36 +0100
committerMorten Sorvig <morten.sorvig@nokia.com>2010-01-28 06:05:36 +0100
commit373eb7c58ffd5fe1c57bdf2a1c91683cfcc131f9 (patch)
treecaba809bdbea6ffb26c685397a15bd9356dedeee
parent8eaae0130043127b095f74d4cdca0585a5d49684 (diff)
Send posted events (e.g. paint events) only when
there are no other events in the queue.
-rw-r--r--src/gui/kernel/qeventdispatcher_nacl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qeventdispatcher_nacl.cpp b/src/gui/kernel/qeventdispatcher_nacl.cpp
index 578cb70bb0..e15e334911 100644
--- a/src/gui/kernel/qeventdispatcher_nacl.cpp
+++ b/src/gui/kernel/qeventdispatcher_nacl.cpp
@@ -103,10 +103,10 @@ QEventDispatcherNaCl::~QEventDispatcherNaCl()
bool QEventDispatcherNaCl::processEvents(QEventLoop::ProcessEventsFlags flags)
{
do {
- QApplication::sendPostedEvents();
NaClMultimediaEvent event;
if (nacl_video_poll_event(&event) != 0) {
activateTimers();
+ QApplication::sendPostedEvents();
continue;
}