aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-07-04 09:43:41 -0700
committerJoe Wilm <joe@jwilm.com>2016-07-04 09:43:41 -0700
commit5c79c117a2bdd9e279242fda9b0b85d6655f396d (patch)
treed887638a083e1c857ceb704a4db8525ea00d6261
parent6be23659ef5e532eb5825380d436fa86cecd39d7 (diff)
downloadr-alacritty-5c79c117a2bdd9e279242fda9b0b85d6655f396d.tar.gz
r-alacritty-5c79c117a2bdd9e279242fda9b0b85d6655f396d.tar.bz2
r-alacritty-5c79c117a2bdd9e279242fda9b0b85d6655f396d.zip
Fix resizing on macOS
terminal.resize was not being called. Additionally, it was being called too much on other platforms (resize events were completely coalesced).
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0cd1e674..5c52dcda 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -240,7 +240,6 @@ fn main() {
}
},
glutin::Event::Resized(w, h) => {
- terminal.resize(w as f32, h as f32);
new_size = Some((w, h));
},
glutin::Event::KeyboardInput(state, _code, key) => {
@@ -267,6 +266,7 @@ fn main() {
// Receive any resize events; only call gl::Viewport on last
// available
if let Some((w, h)) = new_size.take() {
+ terminal.resize(w as f32, h as f32);
renderer.resize(w as i32, h as i32);
}