summaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2025-07-03 15:04:07 +1200
committerBen Bridle <bridle.benjamin@gmail.com>2025-07-03 15:04:07 +1200
commit04cefafd15b6fb5324857c275c70295322f82dd4 (patch)
tree818a848c96b186df3710166d922cad5d7f4e0f59 /src/window.rs
parent495beeb436322a5d447e80858f5c37412af5d063 (diff)
downloadphosphor-04cefafd15b6fb5324857c275c70295322f82dd4.zip
Allow windows to be created invisible
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs1
1 files changed, 1 insertions, 0 deletions
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);