aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorRudis Muiznieks <rmuiznieks@nextgxdx.com>2017-01-05 15:04:23 -0600
committerRudis Muiznieks <rmuiznieks@nextgxdx.com>2017-01-06 09:18:23 -0600
commitc0054d0fe291f88ac75545ab014d0b062fa5c180 (patch)
tree5f79b8f869d7abaa42ccb5f21bbc8530af6f5b46 /src/window.rs
parent3c57c0388727884f9ed4e6066f1b58408ad3fed1 (diff)
downloadalacritty-c0054d0fe291f88ac75545ab014d0b062fa5c180.tar.gz
alacritty-c0054d0fe291f88ac75545ab014d0b062fa5c180.zip
Added --title argument to set window title
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs9
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