[PATCH 0/8] surface_attach() vfuncs

Ander Conselvan de Oliveira conselvan2 at gmail.com
Tue Mar 27 07:40:40 PDT 2012


I also pushed these patches to

	git at github.com:anderco/wayland.git surface-attach-vfuncs

and

	git at github.com:anderco/weston.git surface-attach-vfuncs

Cheers,
Ander

On 03/27/2012 05:36 PM, Ander Conselvan de Oliveira wrote:
> Hi,
>
> This series implements a vfunc for configuring a surface after an
> attach. The idea is that we don't want the shell to meddle with some
> surfaces such as drag surfaces, so the shell map() and configure()
> code is moved into shell and it sets the appropriate vfunc for a
> surface in wl_shell_get_shell_surface().
>
> In order to do that, we need to provide a way for the shell to know
> whether a surface is mapped or not and also to be able to get float
> global coordinates for a surface. Hence the first two weston patches.
>
> The third patch changes how es->pitch is set, making it depend only on
> the buffer size and not on the surface width. We can get rid of this
> once we start using GL_EXT_unpack_subimage for uploading textures for
> shm buffers.
>
> The drag surface listener stuff is necessary to not break functionality
> once the vfuncs are implemented in the second to last patch.
>
> wayland changes:
>
> Ander Conselvan de Oliveira (1):
>    data-device: notify the compositor about new drag icons
>
> weston changes:
>
> Ander Conselvan de Oliveira (7):
>    compositor: add a weston_surface_is_mapped() helper
>    compositor: add weston_surface_to_global_float helper
>    compositor: make es->pitch consistent between shm and drm surfaces
>    compositor: use new drag icon listener for setting up drag surfaces
>    compositor: refactor surface_attach()
>    compositor: make surface_configure() a vfunc
>    compositor: move force_configure field to shell_surface
>
>   src/compositor.c |  157 ++++++++++++++++++++++++++++++-----------------------
>   src/compositor.h |   15 +++++-
>   src/shell.c      |   41 +++++++++++++--
>   3 files changed, 140 insertions(+), 73 deletions(-)
>



More information about the wayland-devel mailing list