compositor, clients: make damage double-buffered
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 10 Oct 2012 09:49:25 +0000 (12:49 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Oct 2012 01:38:31 +0000 (21:38 -0400)
commit8e159180cc2cb149399b20300cbed106e298241f
tree602fa48ffc2c74fcb887449fd5e9543621cbd4eb
parentc9e00c06e97c74bc96951f4b81d08ecf4a01c705
compositor, clients: make damage double-buffered

This change depends on the Wayland commit
"protocol: double-buffered state for wl_surface".

Implement double-buffering of damage in the compositor as required by
the new protocol.

Ensure all Weston demo clients call wl_surface_commit() after
wl_surface_damage().

Mesa does not need a fix for this, as the patch adding
wl_surface_commit() call to Mesa already takes care of damage, too;
Mesa commit: "wayland: use wl_surface_commit()"

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-touch.c
clients/smoke.c
src/compositor.c
src/compositor.h