diff options
Diffstat (limited to 'alacritty/src/window.rs')
-rw-r--r-- | alacritty/src/window.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 22e84780..4275f859 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -34,7 +34,6 @@ use glutin::{self, ContextBuilder, PossiblyCurrent, WindowedContext}; use winapi::shared::minwindef::WORD; use alacritty_terminal::config::{Decorations, StartupMode, WindowConfig}; -use alacritty_terminal::event::Event; #[cfg(not(windows))] use alacritty_terminal::term::{SizeInfo, Term}; @@ -103,9 +102,9 @@ impl From<font::Error> for Error { } } -fn create_gl_window( +fn create_gl_window<E>( mut window: WindowBuilder, - event_loop: &EventLoop<Event>, + event_loop: &EventLoop<E>, srgb: bool, vsync: bool, dimensions: Option<PhysicalSize<u32>>, @@ -147,8 +146,8 @@ impl Window { /// Create a new window. /// /// This creates a window and fully initializes a window. - pub fn new( - event_loop: &EventLoop<Event>, + pub fn new<E>( + event_loop: &EventLoop<E>, config: &Config, size: Option<PhysicalSize<u32>>, #[cfg(not(any(target_os = "macos", windows)))] wayland_event_queue: Option<&EventQueue>, |