Skip to content

Commit

Permalink
use with_visible
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Aug 18, 2023
1 parent 7ff0993 commit e503c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_winit/src/winit_windows.rs
Expand Up @@ -96,7 +96,8 @@ impl WinitWindows {
.with_resizable(window.resizable)
.with_enabled_buttons(convert_enabled_buttons(window.enabled_buttons))
.with_decorations(window.decorations)
.with_transparent(window.transparent);
.with_transparent(window.transparent)
.with_visible(window.visible);

let constraints = window.resize_constraints.check_constraints();
let min_inner_size = LogicalSize {
Expand Down Expand Up @@ -167,7 +168,6 @@ impl WinitWindows {
);
adapters.insert(entity, adapter);
handlers.insert(entity, handler);
winit_window.set_visible(window.visible);

// Do not set the grab mode on window creation if it's none. It can fail on mobile.
if window.cursor.grab_mode != CursorGrabMode::None {
Expand Down

0 comments on commit e503c8d

Please sign in to comment.