diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-14 13:34:30 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-11-17 17:16:01 -0800 |
commit | cbb9167d434bcf6f7ffb4ff095b77f909959fc85 (patch) | |
tree | 324f9b6cdb67deee675e8d92d81aa1f6ce699d30 /src/event.rs | |
parent | 8360ab44ece57194ab40ddd280dcb5ce35ae91b7 (diff) | |
download | alacritty-cbb9167d434bcf6f7ffb4ff095b77f909959fc85.tar.gz alacritty-cbb9167d434bcf6f7ffb4ff095b77f909959fc85.zip |
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.
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<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; + } _ => (), } } |