mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Only do the trick when window is hidden
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user