diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-09 21:10:49 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | 4ba29314375337c7c4deca01b06450dbccfc0289 (patch) | |
tree | 373cdc4c82270164934e00427f19b0d2ff963cce /src/event.rs | |
parent | 093ac43f806d4321674888a7cd48d4c2ecdfa7bf (diff) | |
download | alacritty-4ba29314375337c7c4deca01b06450dbccfc0289.tar.gz alacritty-4ba29314375337c7c4deca01b06450dbccfc0289.zip |
Cleaning up main; Added window module
Adds a wrapper for the glutin::Window which provides strongly typed
APIs and more convenient interfaces. Moves some gl calls into the
opengl-based renderer.
The point of most of the changes here is to clean up main().
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index 2656db72..900a0fb1 100644 --- a/src/event.rs +++ b/src/event.rs @@ -5,6 +5,7 @@ use std::sync::{Arc, mpsc}; use serde_json as json; use glutin; +use window::Window; use input; use sync::FairMutex; @@ -114,7 +115,7 @@ impl<N: input::Notify> Processor<N> { } /// Process at least one event and handle any additional queued events. - pub fn process_events(&mut self, window: &glutin::Window) { + pub fn process_events(&mut self, window: &Window) { for event in window.wait_events() { self.handle_event(event); break; |