mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
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:
parent
53a684bf9e
commit
003886661c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user