aboutsummaryrefslogtreecommitdiff
path: root/src/event_loop.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-09 21:10:49 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commit4ba29314375337c7c4deca01b06450dbccfc0289 (patch)
tree373cdc4c82270164934e00427f19b0d2ff963cce /src/event_loop.rs
parent093ac43f806d4321674888a7cd48d4c2ecdfa7bf (diff)
downloadalacritty-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_loop.rs')
-rw-r--r--src/event_loop.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs
index 72b98425..c2c5ce69 100644
--- a/src/event_loop.rs
+++ b/src/event_loop.rs
@@ -14,6 +14,8 @@ use term::Term;
use util::thread;
use sync::FairMutex;
+use window;
+
use super::Flag;
/// Messages that may be sent to the `EventLoop`
@@ -33,7 +35,7 @@ pub struct EventLoop<Io> {
rx: mio::channel::Receiver<Msg>,
tx: mio::channel::Sender<Msg>,
terminal: Arc<FairMutex<Term>>,
- proxy: ::glutin::WindowProxy,
+ proxy: window::Proxy,
signal_flag: Flag,
ref_test: bool,
}
@@ -129,7 +131,7 @@ impl<Io> EventLoop<Io>
/// Create a new event loop
pub fn new(
terminal: Arc<FairMutex<Term>>,
- proxy: ::glutin::WindowProxy,
+ proxy: window::Proxy,
signal_flag: Flag,
pty: Io,
ref_test: bool,