aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2017-12-17 08:23:49 +0100
committerJoe Wilm <jwilm@users.noreply.github.com>2017-12-22 13:14:47 -0800
commit16c0e24d8e4df2a7ac2826f6ebf00d1ced1f531b (patch)
treedd4acf4432709d3cb2a13a713cc169c21a9014b2 /src/display.rs
parent6a1bed0a71ff6a963d9b4535a1ac01727d3ae435 (diff)
downloadalacritty-16c0e24d8e4df2a7ac2826f6ebf00d1ced1f531b.tar.gz
alacritty-16c0e24d8e4df2a7ac2826f6ebf00d1ced1f531b.zip
Add 'borderless' option
Until winit gives us more capabilities in regard to window decorations this implements a simple switch that renders the window without any title bar or border
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs
index 14c5a66d..f0d2a3d0 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -137,7 +137,7 @@ impl Display {
let render_timer = config.render_timer();
// Create the window where Alacritty will be displayed
- let mut window = Window::new(&options.title)?;
+ let mut window = Window::new(&options.title, config.borderless())?;
// get window properties for initializing the other subsystems
let mut viewport_size = window.inner_size_pixels()