From a0a932826c6762d7255a59c77dbe062a5fa9cab7 Mon Sep 17 00:00:00 2001 From: loc Date: Sun, 12 Jan 2020 16:56:49 -0800 Subject: [PATCH] fix: prefer occluded rather than unloading layout info (#21585) --- shell/browser/api/atom_api_browser_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/atom_api_browser_window.cc b/shell/browser/api/atom_api_browser_window.cc index e06dc5ff9e4e..cc2b94600ad0 100644 --- a/shell/browser/api/atom_api_browser_window.cc +++ b/shell/browser/api/atom_api_browser_window.cc @@ -440,7 +440,7 @@ void BrowserWindow::OnWindowShow() { } void BrowserWindow::OnWindowHide() { - web_contents()->WasHidden(); + web_contents()->WasOccluded(); TopLevelWindow::OnWindowHide(); }