mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Force composition on expose events (bug 915809, r=mattwoodrow).
This commit is contained in:
parent
eeb587437e
commit
0ba9850dd7
@ -105,6 +105,7 @@ extern "C" {
|
||||
#include "LayerManagerOGL.h"
|
||||
#include "GLContextProvider.h"
|
||||
#include "mozilla/gfx/2D.h"
|
||||
#include "mozilla/layers/CompositorParent.h"
|
||||
|
||||
#ifdef MOZ_X11
|
||||
#include "gfxXlibSurface.h"
|
||||
@ -1975,6 +1976,12 @@ nsWindow::OnExposeEvent(cairo_t *cr)
|
||||
if (!listener)
|
||||
return FALSE;
|
||||
|
||||
// Do an early async composite so that we at least have something on screen
|
||||
// in the right place, even if the content is out of date.
|
||||
if (GetLayerManager()->GetBackendType() == LAYERS_CLIENT && mCompositorParent) {
|
||||
mCompositorParent->ScheduleRenderOnCompositorThread();
|
||||
}
|
||||
|
||||
// Dispatch WillPaintWindow notification to allow scripts etc. to run
|
||||
// before we paint
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user