fix: prefer occluded rather than unloading layout info (#21585)

This commit is contained in:
loc 2020-01-12 16:56:49 -08:00 committed by Cheng Zhao
parent 19ef7a0fc9
commit a0a932826c

View file

@ -440,7 +440,7 @@ void BrowserWindow::OnWindowShow() {
}
void BrowserWindow::OnWindowHide() {
web_contents()->WasHidden();
web_contents()->WasOccluded();
TopLevelWindow::OnWindowHide();
}