compositor: call configure on surfaces with a null buffer too
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Thu, 21 Feb 2013 10:29:21 +0000 (11:29 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Feb 2013 20:32:04 +0000 (15:32 -0500)
commit184df50d3e68aa53bdda06e14b7fe1531d633656
tree98b35ea26d9fc4a105e83b885067b9ca777beb1b
parent964a342e5367035b02104b54d340c37dfc1aada9
compositor: call configure on surfaces with a null buffer too

This way the shell can know when a surface has been unmapped by
checking the value returned by weston_surface_is_mapped(surface).
The configure handlers have now width and height parameters, so
they do not need anymore to check manually the buffer size.
If a surface's buffer is NULL the width and height passed to the
configure are both 0.
Configure is now only called after an attach. The variable
weston_surface.pending.newly_attached is set to 1 on attach, and
after the configure call is reset to 0.
src/compositor.c
src/compositor.h
src/shell.c
src/tablet-shell.c
tests/weston-test.c