Merge remote-tracking branch 'origin/5.10.0' into 5.10

Change-Id: Id64ad5564f3cd85829ede15ebf33db13cd1587fa
This commit is contained in:
Liang Qi 2017-12-08 13:59:27 +01:00
commit 5e6e5d8930
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ void QWaylandBuffer::init(wl_buffer *buf)
void QWaylandBuffer::release(void *data, wl_buffer *)
{
static_cast<QWaylandBuffer *>(data)->mBusy--;
static_cast<QWaylandBuffer *>(data)->mBusy = false;
}
const wl_buffer_listener QWaylandBuffer::listener = {

View File

@ -73,14 +73,14 @@ public:
virtual QSize size() const = 0;
virtual int scale() const { return 1; }
void setBusy() { mBusy++; }
bool busy() const { return mBusy > 0; }
void setBusy() { mBusy = true; }
bool busy() const { return mBusy; }
protected:
struct wl_buffer *mBuffer;
private:
int mBusy;
bool mBusy;
static void release(void *data, wl_buffer *);
static const wl_buffer_listener listener;