aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authoracheronfail <acheronfail@gmail.com>2019-04-24 05:05:47 +1000
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-23 19:05:47 +0000
commite9813031f6e308984cb5547aa1049839cb75745f (patch)
treec8e6286c98f4f42b6e170e477baa6b1f949b83ef /src/display.rs
parentb0efa9d105b53211d8df094238c7eb8324e93566 (diff)
downloadalacritty-e9813031f6e308984cb5547aa1049839cb75745f.tar.gz
alacritty-e9813031f6e308984cb5547aa1049839cb75745f.zip
Add fullscreen support
Fixes #34. Fixes #2012.
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs
index 07ffdd0f..7e8c0057 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -22,7 +22,7 @@ use glutin::EventsLoop;
use parking_lot::MutexGuard;
use crate::cli;
-use crate::config::Config;
+use crate::config::{Config, StartupMode};
use crate::index::Line;
use crate::message_bar::Message;
use crate::meter::Meter;
@@ -249,7 +249,7 @@ impl Display {
if dimensions.columns_u32() == 0
|| dimensions.lines_u32() == 0
- || config.window().start_maximized()
+ || config.window().startup_mode() != StartupMode::Windowed
{
return None;
}