diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index ab8b4f97b20..844bbefa9e2 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -561,6 +561,9 @@ void NativeWindow::BeforeUnloadDialogCancelled() { } void NativeWindow::DidFirstVisuallyNonEmptyPaint() { + if (IsVisible()) + return; + // When there is a non-empty first paint, resize the RenderWidget to force // Chromium to draw. const auto view = web_contents()->GetRenderWidgetHostView();