diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-02-21 10:58:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-11 15:35:53 +0100 |
commit | 7ab464dca0f303460597d4ec3f03a0ecae352be5 (patch) | |
tree | 7524259ba79d326e88bc89f96174ec21bf938aad /examples | |
parent | 043a2893c41bbe0daa8953e9e30dd6957f216d95 (diff) |
Flush the clients connection after sending the frame callbacks
We want to make sure the events reach the clients asap.
Change-Id: I0783c6be4f4412fd5f3665faec1e57d141291ce7
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qml-compositor/main.cpp | 2 | ||||
-rw-r--r-- | examples/server-buffer/compositor/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qml-compositor/main.cpp b/examples/qml-compositor/main.cpp index c33eb7e63..93b23c0e3 100644 --- a/examples/qml-compositor/main.cpp +++ b/examples/qml-compositor/main.cpp @@ -68,7 +68,7 @@ public: winId(); connect(this, SIGNAL(beforeSynchronizing()), this, SLOT(startFrame()), Qt::DirectConnection); - connect(this, SIGNAL(afterRendering()), this, SLOT(sendCallbacks()), Qt::DirectConnection); + connect(this, SIGNAL(afterRendering()), this, SLOT(sendCallbacks())); } QWaylandSurface *fullscreenSurface() const diff --git a/examples/server-buffer/compositor/main.cpp b/examples/server-buffer/compositor/main.cpp index 1aa29029c..ff375a8c6 100644 --- a/examples/server-buffer/compositor/main.cpp +++ b/examples/server-buffer/compositor/main.cpp @@ -84,7 +84,7 @@ public: grabWindow(); connect(this, SIGNAL(beforeSynchronizing()), this, SLOT(startFrame()), Qt::DirectConnection); - connect(this, SIGNAL(afterRendering()), this, SLOT(sendCallbacks()), Qt::DirectConnection); + connect(this, SIGNAL(afterRendering()), this, SLOT(sendCallbacks())); connect(this, SIGNAL(sceneGraphInitialized()), this, SLOT(initiateServerBuffer()),Qt::DirectConnection); connect(this, SIGNAL(serverBuffersCreated()), this, SLOT(createServerBufferItems())); |