[Cogl] [PATCH 2/2] wayland-winsys: Provide a wl_registry.global_remove callback

Robert Bragg robert at sixbynine.org
Thu Jan 29 08:08:40 PST 2015


Hi Rui,

Both of these patches look good to land to me, assuming you're happy
that they've been tested.

Reviewed-by: Robert Bragg <robert at sixbynine.org>

Thanks,
- Robert


On Wed, Jan 28, 2015 at 2:08 PM, Rui Matos <tiagomatos at gmail.com> wrote:
> Otherwise libwayland-client will abort() when we get that event.
>
> https://bugzilla.gnome.org/show_bug.cgi?id=743594
> ---
>  cogl/winsys/cogl-winsys-egl-wayland.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c
> index 93a8451..2e22052 100644
> --- a/cogl/winsys/cogl-winsys-egl-wayland.c
> +++ b/cogl/winsys/cogl-winsys-egl-wayland.c
> @@ -115,6 +115,14 @@ registry_handle_global_cb (void *data,
>  }
>
>  static void
> +registry_handle_global_remove_cb (void *data,
> +                                  struct wl_registry *registry,
> +                                  uint32_t name)
> +{
> +  /* Nothing to do for now */
> +}
> +
> +static void
>  _cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
>  {
>    CoglRendererEGL *egl_renderer = renderer->winsys;
> @@ -137,6 +145,7 @@ _cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
>
>  static const struct wl_registry_listener registry_listener = {
>    registry_handle_global_cb,
> +  registry_handle_global_remove_cb
>  };
>
>  static int64_t
> --
> 2.1.0
>
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl


More information about the Cogl mailing list