compositor: make surface_configure() a vfunc
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 27 Mar 2012 14:36:41 +0000 (17:36 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Mar 2012 20:36:53 +0000 (16:36 -0400)
commit093bfa3793f06eec992e0b6407c5b1dea604471c
treea4c512406956f872e924b8025f5fc76879a23210
parente11683aab28e297c1162d00dd3acba4a8c265538
compositor: make surface_configure() a vfunc

This allows us to move the logic that calls shell->map() or
shell->configure() into shell while allowing it to be overriden for
surfaces that should not be handle by the shell, such as drag icons.

This patch adds a pointer function called configure to weston_surface,
moves the currsent surface_configure() code into shell and implements
a separate configure() for drag surfaces.
src/compositor.c
src/compositor.h
src/shell.c