aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-06 07:43:03 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-06 07:43:03 -0700
commit6c9989819b1f1a78699bc0f81314a9b147ec3cf0 (patch)
tree1871e91fa890821eb82b674e66645f6c8b6db1ae /src/event.rs
parentb9f663f99e1b80dc5f21c31c8d82deb72e66c6aa (diff)
downloadalacritty-6c9989819b1f1a78699bc0f81314a9b147ec3cf0.tar.gz
alacritty-6c9989819b1f1a78699bc0f81314a9b147ec3cf0.zip
Fix resize not redrawing immediately
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 85487d3a..bb5eebe0 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -54,6 +54,9 @@ impl<'a, W> Processor<'a, W>
},
glutin::Event::Resized(w, h) => {
self.resize_tx.send((w, h)).expect("send new size");
+ // Acquire term lock
+ let mut terminal = self.terminal.lock_high();
+ terminal.dirty = true;
},
glutin::Event::KeyboardInput(state, _code, key, mods) => {
// Acquire term lock