aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2017-12-17 08:23:49 +0100
committerRobert Günzler <r@gnzler.io>2017-12-17 08:23:49 +0100
commit46a1ee72267c0979e980607098ce4ef00a3db1ac (patch)
treedd4acf4432709d3cb2a13a713cc169c21a9014b2 /src/display.rs
parent6a1bed0a71ff6a963d9b4535a1ac01727d3ae435 (diff)
downloadalacritty-46a1ee72267c0979e980607098ce4ef00a3db1ac.tar.gz
alacritty-46a1ee72267c0979e980607098ce4ef00a3db1ac.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()