summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandsubsurface.cpp
diff options
context:
space:
mode:
authorMikko Levonmaa <mikko.levonmaa@lge.com>2015-11-10 14:46:26 +0200
committerMikko Levonmaa <mikko.levonmaa@bitfactor.fi>2015-11-12 06:41:18 +0000
commit7963e85b771852f96a923839cd0530219676914e (patch)
tree61df438b04210a1fbd2953bc2b12ab6bd2919ab3 /src/client/qwaylandsubsurface.cpp
parent2eff05fe14c910c8b2cade8674e49404c6843e74 (diff)
Make swap buffer call non-blocking for subsurfaces
Allows clients that use subsurfaces in synchronized mode to continue processing the event loop even in cases where a frame callback is not delivered from the compositor pending a parent surface commit Change-Id: I7df38afc4080546b60184dacecde321ba8062fac Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/client/qwaylandsubsurface.cpp')
-rw-r--r--src/client/qwaylandsubsurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandsubsurface.cpp b/src/client/qwaylandsubsurface.cpp
index 72b80c18f..eac847c75 100644
--- a/src/client/qwaylandsubsurface.cpp
+++ b/src/client/qwaylandsubsurface.cpp
@@ -58,11 +58,13 @@ QWaylandSubSurface::~QWaylandSubSurface()
void QWaylandSubSurface::setSync()
{
+ QMutexLocker l(&m_syncLock);
QWaylandSubSurface::set_sync();
}
void QWaylandSubSurface::setDeSync()
{
+ QMutexLocker l(&m_syncLock);
QWaylandSubSurface::set_desync();
}