diff options
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/window.rs b/src/window.rs index edf1e7f1..b56b28a0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -18,9 +18,6 @@ use std::ops::Deref; use gl; use glutin; -/// Default title for the window -const DEFAULT_TITLE: &'static str = "Alacritty"; - /// Resize handling for Mac and maybe other platforms /// /// This delegates to a statically referenced closure for convenience. The @@ -195,11 +192,13 @@ impl Window { /// Create a new window /// /// This creates a window and fully initializes a window. - pub fn new() -> Result<Window> { + pub fn new( + title: &str + ) -> Result<Window> { /// Create a glutin::Window let mut window = glutin::WindowBuilder::new() .with_vsync() - .with_title(DEFAULT_TITLE) + .with_title(title) .build()?; /// Set the glutin window resize callback for *this* window. The |