Redraw screen on focus

Fixes an issue where waking from sleep on macOS would continue showing
the lock screen if Alacritty was the active app.
This commit is contained in:
Joe Wilm committed 2016-11-17 17:16:01 -08:00
1 parent 8360ab44ec
commit cbb9167d43
1 file changed
+4
+4
View File
@@ -80,6 +80,10 @@ impl<N: input::Notify> Processor<N> {
processor.mouse_input(state, button, notifier, *terminal.mode());
},
glutin::Event::Focused(true) => {
let mut terminal = self.terminal.lock();
terminal.dirty = true;
}
_ => (),
}
}