bevy/tools/example-showcase/fixed-window-position.patch

14 lines
636 B
Diff
Raw Permalink Normal View History

diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs
index f578658cd..ffac22062 100644
--- a/crates/bevy_window/src/window.rs
+++ b/crates/bevy_window/src/window.rs
@@ -318,7 +318,7 @@ impl Default for Window {
cursor_options: Default::default(),
present_mode: Default::default(),
mode: Default::default(),
- position: Default::default(),
+ position: WindowPosition::Centered(MonitorSelection::Primary),
resolution: Default::default(),
internal: Default::default(),
composite_alpha_mode: Default::default(),