Question about wl_global_create

Marek Chalupa mchqwerty at gmail.com
Mon Aug 11 00:18:31 PDT 2014


Hi,


On 11 August 2014 07:48, Yang Andy <williamyang13 at hotmail.com> wrote:

> Hi everyone
>
> In my software,i successfully call [wl_global_create]api.
>
> But callback [wl_global_bind_func_t bind] is never called.
>
>
And are you binding to the global in a client? Client must call
wl_registry_bind() (usually from display.global event handler)
to bind to global and this will invoke the bind function.

Try set WAYLAND_DEBUG=1 environment variable and you should see something
like:

  wl_registry at 2.global(3, "your_interface", 1)
      -> wl_registry at 2.bind(3, "your_interface", 1, new id [unknown]@3)

Since wl_global_create succeeded, you should definitely see the first line.
If you don't see the another line, then you're not calling
wl_registry_bind().


> Could anyone give me some advice?
>
> Thank you.
>
> [API]
> wl_global_create(struct wl_display *display,
>          const struct wl_interface *interface, int version,
>          void *data, wl_global_bind_func_t bind)
>
> Andy.
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
Regards,
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140811/062b19b7/attachment.html>


More information about the wayland-devel mailing list