[PATCH weston 1/2] compositor, shell: surface transform inheritance

Pekka Paalanen ppaalanen at gmail.com
Fri Mar 8 03:04:30 PST 2013


On Mon,  4 Mar 2013 17:28:11 +0200
Pekka Paalanen <ppaalanen at gmail.com> wrote:

> Implements surface transform inheritance. A 'parent' pointer is added to
> weston_surface::geometry, and is automatically used by
> weston_surface_update_transform(). When updating the transform, the
> parent transform is updated as needed, too.
> 
> shell_map_popup() is converted to use the new
> weston_surface_set_transform_parent() function. Now, if we moved the
> popup's parent surface while the popup is open, the popup surface will
> stick to the parent properly.
> 
> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> 
> ---
> 
> This is a new suggestion for the transform inheritance. Personally I
> like this a lot better than the weston_matrix_pointer hassle, but I
> haven't yet ported sub-surfaces on top of this.
> 
> Seems to work fine with menus.
> ---
>  src/compositor.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
>  src/compositor.h | 18 ++++++++++++++++--
>  src/shell.c      | 28 +---------------------------
>  3 files changed, 65 insertions(+), 33 deletions(-)

Meh, this seemed too simple, and indeed it was. A v2 will be coming.


Thanks,
pq


More information about the wayland-devel mailing list