summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandsubsurface_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/qwaylandsubsurface_p.h')
-rw-r--r--src/client/qwaylandsubsurface_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandsubsurface_p.h b/src/client/qwaylandsubsurface_p.h
index 5255df5c9..b8ea6aaf3 100644
--- a/src/client/qwaylandsubsurface_p.h
+++ b/src/client/qwaylandsubsurface_p.h
@@ -48,6 +48,7 @@
#include <wayland-client.h>
#include <QtCore/qglobal.h>
+#include <QtCore/qmutex.h>
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
#include <QtWaylandClient/private/qwayland-wayland.h>
@@ -71,6 +72,7 @@ public:
void setSync();
void setDeSync();
bool isSync() const { return m_synchronized; }
+ QMutex *syncMutex() { return &m_syncLock; }
private:
@@ -81,6 +83,7 @@ private:
QWaylandWindow *m_window;
QWaylandWindow *m_parent;
bool m_synchronized;
+ QMutex m_syncLock;
};