wayland-egl: Force roundtrips to get device name and authenticate correctly
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 4 Feb 2011 20:37:51 +0000 (15:37 -0500)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Mon, 7 Feb 2011 13:01:31 +0000 (14:01 +0100)
commit56758c839ff29bd168529535a4816bff3b79cde5
tree9ca01e899c867941fb3a2dbb64943bfdf70e7de6
parent93aea84f472f5f9ff588f7b2d4f7320ec43bc216
wayland-egl: Force roundtrips to get device name and authenticate correctly

If the client hasn't done the initial wl_display_iterate() at the time
we initialize the display, we have to do that in platform_wayland.c.
Make sure we detect that correctly instead of dup()ing fd=0, and use
the sync callback to make sure we don't wait forever for authorization that
won't happen.
src/egl/drivers/dri2/platform_wayland.c
src/egl/wayland/wayland-egl.c