summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandbuffer_p.h
diff options
context:
space:
mode:
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;