From 9510a291a00ae2f93fc65a7746edb45b45a7a38e Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Fri, 10 May 2013 09:02:49 +1200 Subject: [PATCH] Bug 756601 - Call PaintWindow with OMTC so we still get a DidPaint event. r=roc --- widget/cocoa/nsChildView.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index 088f03e555d1..770fbf1eefea 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -2857,11 +2857,14 @@ NSEvent* gLastDragMouseDownEvent = nil; targetContext->Clip(); nsAutoRetainCocoaObject kungFuDeathGrip(self); - bool painted; + bool painted = false; if (mGeckoChild->GetLayerManager()->GetBackendType() == LAYERS_BASIC) { nsBaseWidget::AutoLayerManagerSetup setupLayerManager(mGeckoChild, targetContext, BUFFER_NONE); painted = mGeckoChild->PaintWindow(region, aIsAlternate); + } else if (mGeckoChild->GetLayerManager()->GetBackendType() == LAYERS_CLIENT) { + // We only need this so that we actually get DidPaintWindow fired + painted = mGeckoChild->PaintWindow(region, aIsAlternate); } // Force OpenGL to refresh the very first time we draw. This works around a