simple-shm: honour wl_buffer.release
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 19 Nov 2012 13:29:09 +0000 (15:29 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 19 Nov 2012 20:55:09 +0000 (15:55 -0500)
commit99b705bb1729fe7dacd124851d4fc931547e1dc1
treebe6ecec584f73f139ed99e7f0ec33479cd449873
parentedce9c295c12c0d0e10f51aea1cbf62ed073254c
simple-shm: honour wl_buffer.release

Change simple-shm to properly process the wl_buffer.release event, and
not reuse a buffer until it is released by the server, as specified in
the protocol.

In case the server has not released the buffer, but signals that it has
been shown (frame callback), allocate a second buffer. Simple-shm will
now automatically do double-buffering if needed.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-shm.c