summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandbuffer_p.h
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2017-10-25 14:06:54 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2017-10-25 14:06:54 +0200
commit523cf490b4c46916c6f5253c666a492f5cce2aad (patch)
treeb4514f338b143ab430fe2b91ec7699cb176a147e /src/client/qwaylandbuffer_p.h
parent8e3c71b2d1ec37222bf1648aa23eb033062b4ea6 (diff)
parentf1407493d6d25f24a3c71fbcedc00598baa44b56 (diff)
Merge remote-tracking branch 'qt/5.9' into 5.10v5.10.0-beta3
Diffstat (limited to 'src/client/qwaylandbuffer_p.h')
-rw-r--r--src/client/qwaylandbuffer_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/qwaylandbuffer_p.h b/src/client/qwaylandbuffer_p.h
index 9e8cba2e4..b3513d151 100644
--- a/src/client/qwaylandbuffer_p.h
+++ b/src/client/qwaylandbuffer_p.h
@@ -73,14 +73,14 @@ public:
virtual QSize size() const = 0;
virtual int scale() const { return 1; }
- void setBusy() { mBusy = true; }
- bool busy() const { return mBusy; }
+ void setBusy() { mBusy++; }
+ bool busy() const { return mBusy > 0; }
protected:
struct wl_buffer *mBuffer;
private:
- bool mBusy;
+ int mBusy;
static void release(void *data, wl_buffer *);
static const wl_buffer_listener listener;