aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-11-20 09:30:57 -0800
committerJoe Wilm <joe@jwilm.com>2017-11-20 09:30:57 -0800
commit8ff3c5d170abe47554f5d2a41ad35ddc451d254d (patch)
tree513dcd3bb073d3736649fcb87c88fa8ed7667227
parenta931d691a21a851ca4653cbab3542c600b72ff36 (diff)
downloadalacritty-8ff3c5d170abe47554f5d2a41ad35ddc451d254d.tar.gz
alacritty-8ff3c5d170abe47554f5d2a41ad35ddc451d254d.zip
Revert "Wait to display window until initialization is complete (#907)"
This reverts commit a931d691a21a851ca4653cbab3542c600b72ff36. Please see https://github.com/jwilm/alacritty/pull/907#issuecomment-345666727 for rationale w/ GIF. > now alacritty starts "in stages". First it paints some small > rectangle, and in a second in "boots" and fills up the available > space.
-rw-r--r--src/display.rs3
-rw-r--r--src/window.rs7
2 files changed, 1 insertions, 9 deletions
diff --git a/src/display.rs b/src/display.rs
index 2d87f9ec..862be468 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -197,9 +197,6 @@ impl Display {
api.clear(background_color);
});
- // Show the window now that it's been initialized
- window.show();
-
Ok(Display {
window: window,
renderer: renderer,
diff --git a/src/window.rs b/src/window.rs
index 20c8956f..486bd590 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -190,8 +190,7 @@ impl Window {
Window::platform_window_init();
let window = WindowBuilder::new()
.with_title(title)
- .with_transparency(true)
- .with_visibility(false);
+ .with_transparency(true);
let context = ContextBuilder::new()
.with_vsync(true);
let window = ::glutin::GlWindow::new(window, context, &event_loop)?;
@@ -267,10 +266,6 @@ impl Window {
self.window.resize(width, height);
}
- pub fn show(&self) {
- self.window.show();
- }
-
/// Block waiting for events
#[inline]
pub fn wait_events<F>(&mut self, func: F)