Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all old layers before adding a new root layer (fixes #2259) #2575

Merged
merged 3 commits into from Jun 4, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Remove all old layers when creating a new root.

Fixes #2259.
  • Loading branch information
mbrubeck committed Jun 4, 2014
commit e9efa60647b6856a6dd4858d8d2f66bd02637050
@@ -381,13 +381,7 @@ impl IOCompositor {
self.opts.cpu_painting);
new_layer.unrendered_color = unrendered_color;

let first_child = self.root_layer.first_child.borrow().clone();
match first_child {
None => {}
Some(old_layer) => {
ContainerLayer::remove_child(self.root_layer.clone(), old_layer)
}
}
self.root_layer.remove_all_children();

assert!(new_layer.add_child_if_necessary(self.root_layer.clone(),
root_pipeline_id,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.