gl/wayland: don't block the event loop after poll

Use the dispatch_pending set of functions which just run the currently
queued up events instead of potentially waiting for an event to occur.
This commit is contained in:
Matthew Waters 2015-05-29 18:01:29 +10:00 committed by Tim-Philipp Müller
parent 70ccb610f6
commit 8332b1abe8

View file

@ -120,9 +120,9 @@ wayland_event_source_dispatch (GSource * base,
if (source->pfd.revents) {
if (source->queue)
wl_display_roundtrip_queue (source->display, source->queue);
wl_display_dispatch_queue_pending (source->display, source->queue);
else
wl_display_roundtrip (source->display);
wl_display_dispatch_pending (source->display);
source->pfd.revents = 0;
}