`with_fullscreen`/`set_fullscreen` do not fullscreen
lylythechosenone opened this issue · comments
lylythechosenone commented
Description
Using WindowBuilder::with_fullscreen
results in a maximized window (see video), and Window::set_fullscreen
does nothing at all.
I am using borderless fullscreen without a monitor set. Exclusive does work as intended, video mode and all.
Screen.Recording.2024-04-13.at.2.06.14.PM.mov
macOS version
ProductName: macOS
ProductVersion: 14.0
BuildVersion: 23A344
Winit version
0.29.14
Mads Marquart commented
Create the window inside of your event loop in the Event::NewEvents(StartCause::Init)
event, like this:
let mut window = None;
event_loop.run(|event, event_loop| {
match event {
Event::NewEvents(StartCause::Init) => {
window = Some(
WindowBuilder::new()
// ...
);
}
_ => {}
}
})
lylythechosenone commented
Oh, I see. Maybe this should go in the docs, then.
Thanks for your help.
Mads Marquart commented
It's been fixed in v0.30, which we're releasing in a few days. It was stated in the README before.