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