[PATCH weston 1/2] compositor-wayland: Flag the wayland backend as nested

Giulio Camuffo giuliocamuffo at gmail.com
Wed Apr 1 12:08:04 PDT 2015


2015-04-01 20:37 GMT+03:00 Derek Foreman <derekf at osg.samsung.com>:
> Nested compositors may have different requirements than un-nested ones.
> The current need stems from having to avoid the new repaint delay when
> in a nested compositor.
>
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> ---
>  src/compositor-wayland.c | 2 ++
>  src/compositor.h         | 1 +
>  2 files changed, 3 insertions(+)
>
> diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
> index 7e59ecd..46085f1 100644
> --- a/src/compositor-wayland.c
> +++ b/src/compositor-wayland.c
> @@ -1929,6 +1929,8 @@ wayland_compositor_create(struct wl_display *display, int use_pixman,
>         if (c == NULL)
>                 return NULL;
>
> +       c->base.nested = true;

Shouldn't we set this also for the X11 backend?

> +
>         if (weston_compositor_init(&c->base, display, argc, argv,
>                                    config) < 0)
>                 goto err_free;
> diff --git a/src/compositor.h b/src/compositor.h
> index 5f49237..f294302 100644
> --- a/src/compositor.h
> +++ b/src/compositor.h
> @@ -688,6 +688,7 @@ struct weston_compositor {
>
>         clockid_t presentation_clock;
>         int32_t repaint_msec;
> +       bool nested;
>
>         int exit_code;
>  };
> --
> 2.1.4
>
> _______________________________________________
> 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