diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index f5bbe248ff1a6f..f63561bc22ee17 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -644,7 +644,9 @@ pub enum WindowPosition { /// /// Note that this does not account for window decorations. Centered, - /// Window will be placed at specified position + /// The window's top-left corner will be placed at the specified position (in pixels) + /// + /// (0,0) represents top-left corner of screen space. At(Vec2), } @@ -721,7 +723,7 @@ impl Default for WindowDescriptor { title: "app".to_string(), width: 1280., height: 720., - position: WindowPosition::Default, + position: WindowPosition::Automatic, resize_constraints: WindowResizeConstraints::default(), scale_factor_override: None, present_mode: PresentMode::Fifo, diff --git a/crates/bevy_winit/src/winit_windows.rs b/crates/bevy_winit/src/winit_windows.rs index 74a374863d060e..a2fea74aa0d4d0 100644 --- a/crates/bevy_winit/src/winit_windows.rs +++ b/crates/bevy_winit/src/winit_windows.rs @@ -51,7 +51,7 @@ impl WinitWindows { use bevy_window::WindowPosition::*; match position { - Default => { /* Window manager will handle position */ } + Automatic => { /* Window manager will handle position */ } Centered => { if let Some(monitor) = event_loop.primary_monitor() { let screen_size = monitor.size();