cogland: Flush the clients in prepare, not check

The clients should be flushed before going idle, not after so the call
to wl_display_flush_clients was in the wrong place.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit a191366fbababd5b551140ef9297a9c6e3852c59)
This commit is contained in:
Neil Roberts 2013-03-22 13:23:42 +00:00
parent 53a684bf9e
commit 003886661c

View File

@ -213,8 +213,12 @@ region_subtract (CoglandRegion *region,
static CoglBool
wayland_event_source_prepare (GSource *base, int *timeout)
{
WaylandEventSource *source = (WaylandEventSource *)base;
*timeout = -1;
wl_display_flush_clients (source->display);
return FALSE;
}
@ -223,8 +227,6 @@ wayland_event_source_check (GSource *base)
{
WaylandEventSource *source = (WaylandEventSource *)base;
wl_display_flush_clients (source->display);
return source->pfd.revents;
}