summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.rs1
-rw-r--r--src/window_builder.rs2
2 files changed, 3 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);
diff --git a/src/window_builder.rs b/src/window_builder.rs
index 21787e6..6761b8d 100644
--- a/src/window_builder.rs
+++ b/src/window_builder.rs
@@ -10,6 +10,7 @@ pub struct WindowBuilder {
pub cursor: Option<CursorIcon>,
pub icon: Option<Icon>,
pub fullscreen: bool,
+ pub visible: bool,
}
impl WindowBuilder {
@@ -23,6 +24,7 @@ impl WindowBuilder {
cursor: None,
icon: None,
fullscreen: false,
+ visible: true,
}
}
}