<div dir="ltr">Hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 August 2014 07:48, Yang Andy <span dir="ltr"><<a href="mailto:williamyang13@hotmail.com" target="_blank">williamyang13@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div dir="ltr">Hi everyone<br><br>In my software,i successfully call [wl_global_create]api.<br><br>But callback [wl_global_bind_func_t bind] is never called.<br><br></div></div></blockquote><div><br></div><div>And are you binding to the global in a client? Client must call wl_registry_bind() (usually from display.global event handler)<br>
to bind to global and this will invoke the bind function.<br><br>Try set WAYLAND_DEBUG=1 environment variable and you should see something like:<br><br> wl_registry@2.global(3, "your_interface", 1)<br> -> wl_registry@2.bind(3, "your_interface", 1, new id [unknown]@3)<br>
<br></div><div>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<br>wl_registry_bind().<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div dir="ltr">Could anyone give me some advice?<br><br>Thank you.<br><br>[API]<br>wl_global_create(struct wl_display *display,<br> const struct wl_interface *interface, int version,<br> void *data, wl_global_bind_func_t bind)<span class=""><font color="#888888"><br>
<br>Andy.<br> </font></span></div></div>
<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">Regards,<br>Marek<br></div></div>