summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlsurfacebuffer.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2012-03-05 09:58:32 +0100
committerSamuel Rødal <samuel.rodal@nokia.com>2012-03-05 10:03:46 +0100
commit6200e672a24d7d61e53b46ddb4ef5e0c3733516f (patch)
tree1ba752022e01fa69347743835f25ec7ffed73f22 /src/compositor/wayland_wrapper/wlsurfacebuffer.cpp
parentd61d5176ce7f90710d53edcc3a176cc9a2e05e90 (diff)
Use the new cool event wrapper functions generated by wayland-scanner
This gives us some more static typechecking which is cool.. This fixes actually a couple of minor bugs we had, one where we didn't send a value for the refreshrate of a screen, and a couple in selection. Change-Id: I2b4193b488784885d7cce27f7f5b2d2df45c6c83 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurfacebuffer.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wlsurfacebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurfacebuffer.cpp b/src/compositor/wayland_wrapper/wlsurfacebuffer.cpp
index 01d4c1201..7d3fe9a29 100644
--- a/src/compositor/wayland_wrapper/wlsurfacebuffer.cpp
+++ b/src/compositor/wayland_wrapper/wlsurfacebuffer.cpp
@@ -103,7 +103,7 @@ void SurfaceBuffer::destructBufferState()
void SurfaceBuffer::sendRelease()
{
Q_ASSERT(m_buffer);
- wl_resource_post_event(&m_buffer->resource, WL_BUFFER_RELEASE);
+ wl_buffer_send_release(&m_buffer->resource);
}
void SurfaceBuffer::setPageFlipperHasBuffer(bool owns)