From 18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sat, 11 Jul 2020 20:03:09 +0300 Subject: Remove gui dependencies from alacritty_terminal This commit removes font dependency from alacritty_terminal, so it'll simplify the usage of alacritty_terminal as a library, since you won't link to system's libraries anymore. It also moves many alacritty related config options from it. Fixes #3393. --- alacritty_terminal/src/event_loop.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'alacritty_terminal/src/event_loop.rs') diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 156510b0..43e8a302 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -15,7 +15,6 @@ use mio::{self, Events, PollOpt, Ready}; use mio_extras::channel::{self, Receiver, Sender}; use crate::ansi; -use crate::config::Config; use crate::event::{self, Event, EventListener}; use crate::sync::FairMutex; use crate::term::{SizeInfo, Term}; @@ -155,11 +154,12 @@ where U: EventListener + Send + 'static, { /// Create a new event loop. - pub fn new( + pub fn new( terminal: Arc>>, event_proxy: U, pty: T, - config: &Config, + hold: bool, + ref_test: bool, ) -> EventLoop { let (tx, rx) = channel::channel(); EventLoop { @@ -169,8 +169,8 @@ where rx, terminal, event_proxy, - hold: config.hold, - ref_test: config.debug.ref_test, + hold, + ref_test, } } -- cgit v1.2.3-54-g00ecf