summaryrefslogtreecommitdiffstats
path: root/winit/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-26 19:48:40 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-26 19:48:40 +0200
commitc08c78ad17268ff99b3fc10efef76c6df399e547 (patch)
treec28d93d72af10c54151b2e20ca3279d09db87c3b /winit/src/settings.rs
parentda7e8598406fcde2a33ea749d561a2f10dbb5407 (diff)
downloadiced-c08c78ad17268ff99b3fc10efef76c6df399e547.tar.gz
iced-c08c78ad17268ff99b3fc10efef76c6df399e547.tar.bz2
iced-c08c78ad17268ff99b3fc10efef76c6df399e547.zip
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.
Diffstat (limited to 'winit/src/settings.rs')
-rw-r--r--winit/src/settings.rs3
1 files changed, 2 insertions, 1 deletions
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(),