From 04cefafd15b6fb5324857c275c70295322f82dd4 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Thu, 3 Jul 2025 15:04:07 +1200 Subject: Allow windows to be created invisible --- src/window.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index f031af5..8d118fa 100644 --- a/src/window.rs +++ b/src/window.rs @@ -62,6 +62,7 @@ impl PhosphorWindow { true => attr = attr.with_fullscreen(Some(Fullscreen::Borderless(None))), false => attr = attr.with_fullscreen(None), }; + attr = attr.with_visible(builder.visible); let increment = PhysicalSize { width: scale, height: scale }; attr = attr.with_resize_increments(increment); -- cgit v1.2.3-70-g09d2