Simplify and unify compositor shutdown code paths

Unify all compositor shutdown code paths into two methods, one which
starts the shutdown and the other that finishes it. This simplifies the
way the compositor shuts down and prevents "leaking" pixmaps when
exiting in uncommon ways.
This commit is contained in:
Martin Robinson 2015-10-07 12:11:54 -07:00
parent 1d617f332e
commit dae22b6e80
6 changed files with 47 additions and 69 deletions

View file

@ -186,10 +186,6 @@ impl Browser {
pub fn request_title_for_main_frame(&self) {
self.compositor.title_for_main_frame()
}
pub fn shutdown(mut self) {
self.compositor.shutdown();
}
}
fn create_constellation(opts: opts::Opts,