[PATCH weston] simple-egl: use roundtrip after get_registry request
Pekka Paalanen
ppaalanen at gmail.com
Tue Mar 15 12:32:05 UTC 2016
On Mon, 14 Mar 2016 11:40:38 +0100
Marek Chalupa <mchqwerty at gmail.com> wrote:
> Sometimes weston-simple-egl aborts in create_surface
> under some conditions. It is because wl_display_dispatch()
> may not be enough to make sure we have all requried objects.
> Can be modeled by wldbg:
>
> $ wldbg -i weston-simple-egl
> (wldbg) b re get_registry
> (wldbg) c
> (wldbg) c
>
> After these steps the weston-simple-egl aborts, because
> it has not got shell neither ivi-shell objects
>
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
> ---
> clients/simple-egl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/clients/simple-egl.c b/clients/simple-egl.c
> index 78b4226..d8233c1 100644
> --- a/clients/simple-egl.c
> +++ b/clients/simple-egl.c
> @@ -861,7 +861,7 @@ main(int argc, char **argv)
> wl_registry_add_listener(display.registry,
> ®istry_listener, &display);
>
> - wl_display_dispatch(display.display);
> + wl_display_roundtrip(display.display);
>
> init_egl(&display, &window);
> create_surface(&window);
Indeed, pushed:
193e301..c21cb3d master -> master
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160315/a3456f7e/attachment.sig>
More information about the wayland-devel
mailing list