aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-16 17:14:16 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-16 17:14:16 -0700
commit0d6d0dc0af028ead15c188db5d5f30e39fe0e3e7 (patch)
treebf2d7a89d52c3765a21d844fcacc8aa17fab6ce9 /src
parent7da9de34d81f6a03f1923ff95ce0f48678ce86fb (diff)
downloadalacritty-0d6d0dc0af028ead15c188db5d5f30e39fe0e3e7.tar.gz
alacritty-0d6d0dc0af028ead15c188db5d5f30e39fe0e3e7.zip
Remove extra wait_events()
Allegedly x11 wants you to wait for a refresh event before using the context, but that doesn't arrive on all platforms (notably macOS).
Diffstat (limited to 'src')
-rw-r--r--src/main.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index f2ef90b2..c0685204 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -118,12 +118,6 @@ fn main() {
println!("device_pixel_ratio: {}", dpr);
- for event in window.wait_events() {
- if let glutin::Event::Refresh = event {
- break;
- }
- }
-
let _ = unsafe { window.make_current() };
unsafe {
gl::Viewport(0, 0, width as i32, height as i32);