1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-04-14 17:53:03 -04:00

Fix resize not redrawing immediately

This commit is contained in:
Joe Wilm 2016-09-06 07:43:03 -07:00
parent b9f663f99e
commit 6c9989819b

View file

@ -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