compositor: make wl_surface.attach double-buffered
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 10 Oct 2012 09:49:23 +0000 (12:49 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Oct 2012 01:38:00 +0000 (21:38 -0400)
commit5df44de6a92ed3328292484963e038fe07bfb65f
treec1ddfb5dfbf8e0e24394112b53b68f4972ac613b
parentfa80e11c84a00227ebec79d22bb1cc5e054b3e19
compositor: make wl_surface.attach double-buffered

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

Clients are now required to issue wl_surface.commit for the
wl_surface.attach to take effect.

While changing this, change the surface argument to
weston_surface_attach() from wl_surface into weston_surface, for
consistency.

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