summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2016-03-14 11:40:38 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-15 14:31:07 +0200
commitc21cb3d0037a28e1103bc95f53dc230342ec5684 (patch)
tree449e2a3eb97b83303b772a2dfff2df904cc07ac5
parent193e301c740b582f20307e3e08f8373d26ea968f (diff)
simple-egl: use roundtrip after get_registry request
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@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--clients/simple-egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index 78b42263..d8233c16 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,
&registry_listener, &display);
- wl_display_dispatch(display.display);
+ wl_display_roundtrip(display.display);
init_egl(&display, &window);
create_surface(&window);