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>
Thu, 6 Dec 2012 20:57:12 +0000 (15:57 -0500)
commita6421c4ea8db9e2aa54ae195739c06a9a45df78d
treea6fb63a25c1bee3988b0c8deb58fdf7bbaa864d9
parent82ec909b07654d7d2f2f93e1f025dbbc4e4b7ac8
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