[PATCH weston] nested: Disable cairo on the subsurfaces

Kristian Høgsberg hoegsberg at gmail.com
Sun Apr 6 23:00:25 PDT 2014


On Mon, Feb 24, 2014 at 07:07:08PM +0000, Neil Roberts wrote:
> The subsurface widgets on the nested example aren't using Cairo to
> render so we should turn it off to prevent the toy toolkit from
> creating a redundant extra surface for it. This is particularly
> important since Mesa commit 6c9d6898fdfd7e2 because the surface that
> the toolkit tries to create is zero-sized and that patch prevents that
> from working. This was causing weston-nested to crash.

Committed this one (thanks for the reminder).

Kristian

> ---
>  clients/nested.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/clients/nested.c b/clients/nested.c
> index d75e953..3bdb961 100644
> --- a/clients/nested.c
> +++ b/clients/nested.c
> @@ -976,6 +976,8 @@ ss_surface_init(struct nested_surface *surface)
>  				      nested,
>  				      SUBSURFACE_SYNCHRONIZED);
>  
> +	widget_set_use_cairo(ss_surface->widget, 0);
> +
>  	ss_surface->surface = widget_get_wl_surface(ss_surface->widget);
>  	ss_surface->subsurface = widget_get_wl_subsurface(ss_surface->widget);
>  
> -- 
> 1.8.5.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list