diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-09-12 14:17:43 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-09-18 12:13:30 +0000 |
commit | 54113bb70ccc2df74c55d881b543d13fd4eb9550 (patch) | |
tree | 0ecc667fa05df3d03f266fe55a0030c2a3d181a3 /examples | |
parent | ae4326db18b99630766e73c2f873eb883db2f493 (diff) | |
download | qtwayland-54113bb70ccc2df74c55d881b543d13fd4eb9550.tar.gz |
Don't use members of wl_resource
When we switch to only including core wayland headers, wl_resource will be an
opaque type. Use the getters and setter functions instead.
Task-number: QTBUG-70553
Change-Id: I7d84d48a4ee3586f231a331cd15716686dcee775
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/server-buffer/compositor/sharebufferextension.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/wayland/server-buffer/compositor/sharebufferextension.cpp b/examples/wayland/server-buffer/compositor/sharebufferextension.cpp index 71731ed2..ecc57b57 100644 --- a/examples/wayland/server-buffer/compositor/sharebufferextension.cpp +++ b/examples/wayland/server-buffer/compositor/sharebufferextension.cpp @@ -126,7 +126,7 @@ void ShareBufferExtension::share_buffer_bind_resource(Resource *resource) for (auto *buffer : qAsConst(m_server_buffers)) { qDebug() << "sending" << buffer << "to client"; - struct ::wl_client *client = resource->handle->client; + struct ::wl_client *client = wl_resource_get_client(resource->handle); struct ::wl_resource *buffer_resource = buffer->resourceForClient(client); send_cross_buffer(resource->handle, buffer_resource); } |