aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-11-14 13:34:30 -0800
committerJoe Wilm <joe@jwilm.com>2016-11-17 17:16:01 -0800
commitcbb9167d434bcf6f7ffb4ff095b77f909959fc85 (patch)
tree324f9b6cdb67deee675e8d92d81aa1f6ce699d30 /src/event.rs
parent8360ab44ece57194ab40ddd280dcb5ce35ae91b7 (diff)
downloadalacritty-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.rs4
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;
+ }
_ => (),
}
}