From c08c78ad17268ff99b3fc10efef76c6df399e547 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 26 Aug 2022 19:48:40 +0200 Subject: Fix invisible window on Windows ... by reverting the changes that were supposed to hide the window initially and only show it after rendering the first frame. --- winit/src/settings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winit/src/settings.rs') diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 7175b9ed..a04ec863 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -106,7 +106,8 @@ impl Window { .with_decorations(self.decorations) .with_transparent(self.transparent) .with_window_icon(self.icon) - .with_always_on_top(self.always_on_top); + .with_always_on_top(self.always_on_top) + .with_visible(self.visible); if let Some(position) = conversion::position( primary_monitor.as_ref(), -- cgit