compositor: do not release if re-attaching buffer
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 4 Dec 2012 13:58:10 +0000 (15:58 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Dec 2012 04:44:58 +0000 (23:44 -0500)
commitce6d79e6654c413019cdeb8a98ff729ac1d1ceca
treebecbc6a86d799179d469f22552ddde1236afbc34
parent246b965128022ce32541087edd5a846c08a58286
compositor: do not release if re-attaching buffer

If a client called wl_surface.attach with the same wl_buffer as
previously, the compositor would mistakenly send a release on that
buffer. This will cause problems only when clients start to properly use
the wl_buffer.release event.

Do not send wl_buffer.release if the same buffer is attached again.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c