From cbb9167d434bcf6f7ffb4ff095b77f909959fc85 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 14 Nov 2016 13:34:30 -0800 Subject: 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. --- src/event.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/event.rs b/src/event.rs index a2a4075d..46b96ab0 100644 --- a/src/event.rs +++ b/src/event.rs @@ -80,6 +80,10 @@ impl Processor { processor.mouse_input(state, button, notifier, *terminal.mode()); }, + glutin::Event::Focused(true) => { + let mut terminal = self.terminal.lock(); + terminal.dirty = true; + } _ => (), } } -- cgit