Browse Source

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

loc 5 years ago
parent
commit
a0a932826c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/api/atom_api_browser_window.cc

+ 1 - 1
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();
 }