egl/wayland: Don't block on EGL_DEFAULT_DISPAY under wayland
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 26 Feb 2013 17:49:40 +0000 (12:49 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 26 Feb 2013 17:49:49 +0000 (12:49 -0500)
commit112ccfab44eb3e23a516209c3be8b2f0107adb47
tree5a73c76790e2cdabe0fc144a1a8a75b1d98ed88e
parent68a147e9a9e8f171d9aacdc7d78d2107009c4741
egl/wayland: Don't block on EGL_DEFAULT_DISPAY under wayland

Normally the application will own the main event queue and be responsible
for moving events.  In case of EGL_DEFAULT_DISPLAY, EGL opens the display
and has to own the main queue so it can move the events itself.
Call wl_display_dispatch_pending() to take ownership.
src/egl/drivers/dri2/platform_wayland.c