From 56758c839ff29bd168529535a4816bff3b79cde5 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 4 Feb 2011 15:37:51 -0500 Subject: 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/wayland/wayland-egl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/egl/wayland') diff --git a/src/egl/wayland/wayland-egl.c b/src/egl/wayland/wayland-egl.c index 6aa2d51063..bb95fcbf59 100644 --- a/src/egl/wayland/wayland-egl.c +++ b/src/egl/wayland/wayland-egl.c @@ -102,6 +102,7 @@ wl_egl_display_create(struct wl_display *display) egl_display->display = display; egl_display->drm = NULL; + egl_display->fd = -1; egl_display->device_name = NULL; egl_display->authenticated = false; -- cgit v1.2.3