Merge remote-tracking branch 'origin/5.9.4' into 5.9

Change-Id: If72cba3251b792028a51f815f2f0cb064779bcec
This commit is contained in:
Liang Qi 2018-01-18 11:02:23 +01:00
commit c177b75420
4 changed files with 8 additions and 4 deletions

View File

@ -7,6 +7,8 @@ OTHER_FILES += \
SOURCES += main.cpp
TARGET = qt-plugin-wayland-egl
PLUGIN_TYPE = wayland-graphics-integration-client
PLUGIN_CLASS_NAME = QWaylandEglClientBufferPlugin
load(qt_plugin)

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;

View File

@ -125,6 +125,8 @@ QWaylandXdgSurfaceV6::QWaylandXdgSurfaceV6(QWaylandXdgShellV6 *shell, ::zxdg_sur
QWaylandXdgSurfaceV6::~QWaylandXdgSurfaceV6()
{
if (m_toplevel)
zxdg_toplevel_v6_destroy(m_toplevel->object());
if (m_popup)
zxdg_popup_v6_destroy(m_popup->object());
destroy();