From c19b7db7051c580438ec06fd83b04385212cc477 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 15 Sep 2019 19:43:32 -0700 Subject: [PATCH] fill software window background with black --- src/frontend/software/termwindow.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/frontend/software/termwindow.rs b/src/frontend/software/termwindow.rs index 9813349ae..5182a20cc 100644 --- a/src/frontend/software/termwindow.rs +++ b/src/frontend/software/termwindow.rs @@ -33,14 +33,6 @@ impl WindowCallbacks for TermWindow { } fn destroy(&mut self) { - /* - Future::with_executor(Connection::executor(), move || { - if Mux::get().unwrap().is_empty() { - Connection::get().unwrap().terminate_message_loop(); - } - Ok(()) - }); - */ Connection::get().unwrap().terminate_message_loop(); } @@ -48,7 +40,9 @@ impl WindowCallbacks for TermWindow { self } - fn paint(&mut self, ctx: &mut dyn PaintContext) {} + fn paint(&mut self, ctx: &mut dyn PaintContext) { + ctx.clear(Color::rgb(0, 0, 0)); + } } impl Drop for TermWindow {