window: move cairo_surface into struct surface
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 13 Feb 2013 14:17:20 +0000 (16:17 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 17:34:22 +0000 (12:34 -0500)
commit89dee00e5ef7b7582ff13d84673bab2fab7a367e
treeb863fbd6b9bf623ea8afa3ce9aa25584f538b311
parent2d8a32a9e45472fedcf2ed52b6a798c55db7510e
window: move cairo_surface into struct surface

Widgets should be rendering to a cairo_surface for a particular
wl_surface, just like buffers are per surface.

window_flush() has a change in behaviour: it will now send
wl_shell_surface.set_toplevel also without a cairo_surface to be
attached. This shouldn't change anything in practice.

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