mirror of
https://github.com/brl/mutter.git
synced 2025-02-20 15:04:09 +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
|
static CoglBool
|
||||||
wayland_event_source_prepare (GSource *base, int *timeout)
|
wayland_event_source_prepare (GSource *base, int *timeout)
|
||||||
{
|
{
|
||||||
|
WaylandEventSource *source = (WaylandEventSource *)base;
|
||||||
|
|
||||||
*timeout = -1;
|
*timeout = -1;
|
||||||
|
|
||||||
|
wl_display_flush_clients (source->display);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,8 +227,6 @@ wayland_event_source_check (GSource *base)
|
|||||||
{
|
{
|
||||||
WaylandEventSource *source = (WaylandEventSource *)base;
|
WaylandEventSource *source = (WaylandEventSource *)base;
|
||||||
|
|
||||||
wl_display_flush_clients (source->display);
|
|
||||||
|
|
||||||
return source->pfd.revents;
|
return source->pfd.revents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user