Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Disable compositor recycling only for attached views
In electron#19873, we completely disabled compositor recycling. This has adverse effects in our tabbed app where switching tabs (i.e. `BrowserView`s) now results in a flicker because we now also switch compositors. To fix this without regressing the original fix, we now recycle the compositor when the view is removed from a window or explicitly marked as hidden. These can only happen with `BrowserView`s so `BrowserWindow`s are unaffected.
- Loading branch information