Stop embedder calls and fake rAF when window not visible

This commit is contained in:
Paul Rouget 2020-03-06 06:20:11 +01:00
parent 3749eb5397
commit 21c408e0d5
3 changed files with 11 additions and 6 deletions

View file

@ -483,9 +483,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
ShutdownState::NotShuttingDown,
) => {
self.pipeline_details(pipeline_id).visible = visible;
if visible {
self.process_animations();
}
self.process_animations();
},
(Msg::PipelineExited(pipeline_id, sender), _) => {