aboutsummaryrefslogtreecommitdiff
path: root/src/config.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/config.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/config.rs')
-rw-r--r--src/config.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 48fcda7a..a22c1653 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -247,6 +247,10 @@ pub struct Config {
#[serde(default)]
background_opacity: Alpha,
+ /// Should draw window without borders
+ #[serde(default)]
+ borderless: bool,
+
/// Keybindings
#[serde(default="default_key_bindings")]
key_bindings: Vec<KeyBinding>,
@@ -337,6 +341,7 @@ impl Default for Config {
cursor_style: Default::default(),
live_config_reload: true,
padding: default_padding(),
+ borderless: false,
}
}
}
@@ -1105,6 +1110,11 @@ impl Config {
self.background_opacity
}
+ #[inline]
+ pub fn borderless(&self) -> bool {
+ self.borderless
+ }
+
pub fn key_bindings(&self) -> &[KeyBinding] {
&self.key_bindings[..]
}